1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 09:41:35 +02: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")) { if (!guild.features.includes("ALIASABLE_NAMES")) {
await Invite.update({ guild_id }, { await Invite.update(
code: code { guild_id },
}); {
code: code,
},
);
return res.json({ code });
} }
await Invite.create({ await Invite.create({