条件が逆だったのを修正

This commit is contained in:
samunohito 2024-06-11 21:51:59 +09:00
parent de238b70d7
commit fa8d905484
1 changed files with 2 additions and 2 deletions

View File

@ -55,12 +55,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.noSuchChannel);
}
// Check if already muting
// Check muting
const exist = await this.channelMutingService.isMuted({
requestUserId: me.id,
targetChannelId: targetChannel.id,
});
if (exist) {
if (!exist) {
throw new ApiError(meta.errors.notMuting);
}