💀
This commit is contained in:
parent
c0439a3930
commit
dd145db89d
1 changed files with 1 additions and 1 deletions
|
@ -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