summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorroot <root@nomchy-verse.com>2025-03-25 11:15:14 -0700
committerroot <root@nomchy-verse.com>2025-03-25 11:15:14 -0700
commit541af2045d45d4b1fd51450d4f650e7028c759ba (patch)
treed22fe5abd4a1f9fd79be073d0a22503219adc40a /src/api
parentMerge branch 'spacebarchat:master' into master (diff)
downloadserver-ts-541af2045d45d4b1fd51450d4f650e7028c759ba.tar.xz
Added better user configuration and removed extra logging
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/webhooks/#webhook_id/index.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts

index 9e8933468..baedc7f0d 100644 --- a/src/api/routes/webhooks/#webhook_id/index.ts +++ b/src/api/routes/webhooks/#webhook_id/index.ts
@@ -180,19 +180,19 @@ router.patch( where: { id: channel_id }, }), }); - console.log(webhook.channel_id); - await webhook.save(); - await emitEvent({ - event: "WEBHOOKS_UPDATE", - channel_id, - data: { + await Promise.all([ + webhook.save(), + emitEvent({ + event: "WEBHOOKS_UPDATE", channel_id, - guild_id: webhook.guild_id, - }, - } as WebhooksUpdateEvent); + data: { + channel_id, + guild_id: webhook.guild_id, + }, + } as WebhooksUpdateEvent), + ]); - console.log(webhook.channel_id); res.json(webhook); }, );