From c6cea11becafc500ce1ad7a1922930562f75eb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Gierwia=C5=82o?= Date: Sun, 7 Dec 2025 20:11:27 +0100 Subject: [PATCH] fix(auth): convert wsdcId to string for Prisma compatibility --- backend/src/controllers/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/auth.js b/backend/src/controllers/auth.js index 74ea314..6b2191c 100644 --- a/backend/src/controllers/auth.js +++ b/backend/src/controllers/auth.js @@ -57,7 +57,7 @@ async function register(req, res, next) { OR: [ { email }, { username }, - ...(wsdcId ? [{ wsdcId }] : []), + ...(wsdcId ? [{ wsdcId: String(wsdcId) }] : []), ], }, }); @@ -95,7 +95,7 @@ async function register(req, res, next) { passwordHash, firstName, lastName, - wsdcId, + wsdcId: wsdcId ? String(wsdcId) : null, verificationToken, verificationCode, verificationTokenExpiry,