From ad12ace684e4121176eb8031e1d838846330a72a Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 3 Nov 2021 00:07: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 f25ec7bf..404b3c11 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 {