This commit is contained in:
JandereDev 2022-02-01 07:42:13 +01:00
parent c0439a3930
commit dd145db89d
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -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,
})),
});