Added better user configuration and removed extra logging

This commit is contained in:
root
2025-03-25 11:15:14 -07:00
parent 7320aa4529
commit 541af2045d
5 changed files with 44 additions and 13 deletions
+10 -10
View File
@@ -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);
},
);