mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 20:08:16 +00:00
Added better user configuration and removed extra logging
This commit is contained in:
@@ -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);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user