mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 12:42:44 +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")) {
|
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({
|
||||||
|
Loading…
Reference in New Issue
Block a user