* Typings & PostMetadata structure * comment out unused code * Remove duplicate interface * Fix getPreferenceAsBool defaultValue
15 lines
474 B
TypeScript
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;
|
|
}
|
|
};
|