[card][bug] fix - clean up old card after editing profile, if dark mode was chosen

This commit is contained in:
Avris 2021-11-03 00:07:46 +01:00
parent 22382b0779
commit ad12ace684
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
credentials = ${req.isGranted() ? req.body.credentials.join('|') || null : null},
credentialsLevel = ${req.isGranted() ? req.body.credentialsLevel || null : null},
credentialsName = ${req.isGranted() ? req.body.credentialsName || null : null},
card = NULL
card = NULL,
cardDark = NULL
WHERE id = ${ids[0]}
`);
} else {