1
0
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:
Madeline 2024-10-30 09:44:19 +11:00 committed by GitHub
commit 3e95e4ff7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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([