[bug] fix sql syntax error when propagate
This commit is contained in:
parent
377a498939
commit
d8bb33012c
|
@ -234,7 +234,7 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
|
||||||
|
|
||||||
if ((req.body.propagate || []).includes('customFlags')) {
|
if ((req.body.propagate || []).includes('customFlags')) {
|
||||||
await req.db.get(SQL`UPDATE profiles
|
await req.db.get(SQL`UPDATE profiles
|
||||||
customFlags = ${JSON.stringify(req.body.customFlags)}
|
SET customFlags = ${JSON.stringify(req.body.customFlags)}
|
||||||
WHERE userId = ${req.user.id};
|
WHERE userId = ${req.user.id};
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue