fix(create): add withNotification

This commit is contained in:
オスカー、 2024-11-06 20:34:12 +09:00
parent 03c64c296b
commit b8dcaecd2e
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7

View file

@ -57,6 +57,10 @@ export const paramDef = {
nullable: true,
description: 'A Unix Epoch timestamp that must lie in the future. `null` means an indefinite mute.',
},
withNotification: {
type: 'boolean',
default: true,
},
},
required: ['userId'],
} as const;
@ -100,7 +104,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
return;
}
await this.userMutingService.mute(muter, mutee, ps.expiresAt ? new Date(ps.expiresAt) : null);
await this.userMutingService.mute(muter, mutee, ps.expiresAt ? new Date(ps.expiresAt) : null, ps.withNotification);
});
}
}