mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +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 }, {
|
||||
$set: JSON.parse(JSON.stringify({ // Get rid of undefined fields
|
||||
prefix: body.prefix || null,
|
||||
prefix: body.prefix == '' ? null : body.prefix,
|
||||
spaceAfterPrefix: body.spaceAfterPrefix,
|
||||
})),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue