1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00

fix: add return and run prettier

This commit is contained in:
CyberL1 2023-05-13 11:09:52 +02:00
parent 654403a8e8
commit 6390786018

View File

@ -108,9 +108,14 @@ router.patch(
});
if (!guild.features.includes("ALIASABLE_NAMES")) {
await Invite.update({ guild_id }, {
code: code
});
await Invite.update(
{ guild_id },
{
code: code,
},
);
return res.json({ code });
}
await Invite.create({