[card][bug] fix - clean up old card after editing profile, if dark mode was chosen
This commit is contained in:
parent
22382b0779
commit
ad12ace684
|
@ -167,7 +167,8 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
|
||||||
credentials = ${req.isGranted() ? req.body.credentials.join('|') || null : null},
|
credentials = ${req.isGranted() ? req.body.credentials.join('|') || null : null},
|
||||||
credentialsLevel = ${req.isGranted() ? req.body.credentialsLevel || null : null},
|
credentialsLevel = ${req.isGranted() ? req.body.credentialsLevel || null : null},
|
||||||
credentialsName = ${req.isGranted() ? req.body.credentialsName || null : null},
|
credentialsName = ${req.isGranted() ? req.body.credentialsName || null : null},
|
||||||
card = NULL
|
card = NULL,
|
||||||
|
cardDark = NULL
|
||||||
WHERE id = ${ids[0]}
|
WHERE id = ${ids[0]}
|
||||||
`);
|
`);
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue