parent
3a105024c7
commit
5dfbce7571
13 changed files with 60 additions and 4 deletions
|
@ -262,7 +262,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
|
||||
let channel: Channel | null = null;
|
||||
if (ps.channelId != null) {
|
||||
channel = await this.channelsRepository.findOneBy({ id: ps.channelId });
|
||||
channel = await this.channelsRepository.findOneBy({ id: ps.channelId, isArchived: false });
|
||||
|
||||
if (channel == null) {
|
||||
throw new ApiError(meta.errors.noSuchChannel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue