Skip to content

Commit

Permalink
chore: fix Setting.updateValueById result type (#34003)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Nov 22, 2024
1 parent 4b13e39 commit 52d3e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/server/models/raw/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class SettingsRaw extends BaseRaw<ISetting> implements ISettingsModel {
_id: string,
value: (ISetting['value'] extends undefined ? never : ISetting['value']) | null,
options?: UpdateOptions,
): Promise<Document | UpdateResult> {
): Promise<UpdateResult> {
const query = {
blocked: { $ne: true },
value: { $ne: value },
Expand Down
2 changes: 1 addition & 1 deletion packages/model-typings/src/models/ISettingsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface ISettingsModel extends IBaseModel<ISetting> {
_id: string,
value: (ISetting['value'] extends undefined ? never : ISetting['value']) | null,
options?: UpdateOptions,
): Promise<Document | UpdateResult>;
): Promise<UpdateResult>;

resetValueById(
_id: string,
Expand Down

0 comments on commit 52d3e11

Please sign in to comment.