summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <73901602+MathMan05@users.noreply.github.com>2024-10-29 17:42:52 -0500
committerGitHub <noreply@github.com>2024-10-29 17:42:52 -0500
commit6a0d0f41851f4ad33a2c4f7fd76e8a532455b4e6 (patch)
tree1cc00e2e608e2b18c6e7472b42b90c50bb9a822c /src/api
parentAdd updated nix flake (diff)
downloadserver-ts-6a0d0f41851f4ad33a2c4f7fd76e8a532455b4e6.tar.xz
Fix the broken delete API
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/channels/#channel_id/permissions.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts

index fe289f234..40f6b8669 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.ts
@@ -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([