From ffca2c192bc8e00d15ea5503e8c1982b147263b3 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Thu, 4 Nov 2021 22:58:46 +0100 Subject: [PATCH] [card][bug] fix - clean up old card after editing profile, if dark mode was chosen --- server/routes/profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/profile.js b/server/routes/profile.js index f25ec7bfb..404b3c11e 100644 --- a/server/routes/profile.js +++ b/server/routes/profile.js @@ -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 {