mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
💀
This commit is contained in:
parent
c0439a3930
commit
dd145db89d
|
@ -126,7 +126,7 @@ app.put('/dash/server/:server/:option', async (req: Request, res: Response) => {
|
||||||
|
|
||||||
await db.get('servers').update({ id: server }, {
|
await db.get('servers').update({ id: server }, {
|
||||||
$set: JSON.parse(JSON.stringify({ // Get rid of undefined fields
|
$set: JSON.parse(JSON.stringify({ // Get rid of undefined fields
|
||||||
prefix: body.prefix || null,
|
prefix: body.prefix == '' ? null : body.prefix,
|
||||||
spaceAfterPrefix: body.spaceAfterPrefix,
|
spaceAfterPrefix: body.spaceAfterPrefix,
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue