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:
parent
654403a8e8
commit
6390786018
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user