From 52d3e11c297a3a8e9b945d58244b6f74709326ee Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 22 Nov 2024 14:10:15 -0300 Subject: [PATCH] chore: fix `Setting.updateValueById` result type (#34003) --- apps/meteor/server/models/raw/Settings.ts | 2 +- packages/model-typings/src/models/ISettingsModel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/server/models/raw/Settings.ts b/apps/meteor/server/models/raw/Settings.ts index 3bb735c28905..a9c0e0a31269 100644 --- a/apps/meteor/server/models/raw/Settings.ts +++ b/apps/meteor/server/models/raw/Settings.ts @@ -66,7 +66,7 @@ export class SettingsRaw extends BaseRaw implements ISettingsModel { _id: string, value: (ISetting['value'] extends undefined ? never : ISetting['value']) | null, options?: UpdateOptions, - ): Promise { + ): Promise { const query = { blocked: { $ne: true }, value: { $ne: value }, diff --git a/packages/model-typings/src/models/ISettingsModel.ts b/packages/model-typings/src/models/ISettingsModel.ts index 196b1a6bce1c..c333cdf00f6f 100644 --- a/packages/model-typings/src/models/ISettingsModel.ts +++ b/packages/model-typings/src/models/ISettingsModel.ts @@ -25,7 +25,7 @@ export interface ISettingsModel extends IBaseModel { _id: string, value: (ISetting['value'] extends undefined ? never : ISetting['value']) | null, options?: UpdateOptions, - ): Promise; + ): Promise; resetValueById( _id: string,