mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 02:12:28 +01:00
Merge pull request #1227 from MathMan05/patch-3
Fix the broken delete API
This commit is contained in:
commit
3e95e4ff7e
@ -113,7 +113,7 @@ router.delete(
|
||||
if (!channel.guild_id) throw new HTTPError("Channel not found", 404);
|
||||
|
||||
channel.permission_overwrites = channel.permission_overwrites?.filter(
|
||||
(x) => x.id === overwrite_id,
|
||||
(x) => x.id !== overwrite_id,
|
||||
);
|
||||
|
||||
await Promise.all([
|
||||
|
Loading…
Reference in New Issue
Block a user