条件が逆だったのを修正
This commit is contained in:
parent
de238b70d7
commit
fa8d905484
|
@ -55,12 +55,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.noSuchChannel);
|
throw new ApiError(meta.errors.noSuchChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if already muting
|
// Check muting
|
||||||
const exist = await this.channelMutingService.isMuted({
|
const exist = await this.channelMutingService.isMuted({
|
||||||
requestUserId: me.id,
|
requestUserId: me.id,
|
||||||
targetChannelId: targetChannel.id,
|
targetChannelId: targetChannel.id,
|
||||||
});
|
});
|
||||||
if (exist) {
|
if (!exist) {
|
||||||
throw new ApiError(meta.errors.notMuting);
|
throw new ApiError(meta.errors.notMuting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue