mattermost-mobile/app/queries/servers/preference.ts
Elias Nahum 8cd127a223
[Gekidou] Typings & PostMetadata structure (#5542)
* Typings & PostMetadata structure

* comment out unused code

* Remove duplicate interface

* Fix getPreferenceAsBool defaultValue
2021-07-15 11:49:02 -04:00

15 lines
474 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import type ServerDataOperator from '@database/operator/server_data_operator';
export const prepareMyPreferences = (operator: ServerDataOperator, preferences: PreferenceType[]) => {
try {
return operator.handlePreferences({
prepareRecordsOnly: true,
preferences,
});
} catch {
return undefined;
}
};