[bug] fix sql syntax error when propagate

This commit is contained in:
Andrea 2022-01-17 17:07:12 +01:00
parent 377a498939
commit d8bb33012c
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
if ((req.body.propagate || []).includes('customFlags')) {
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};
`);
}