fix(auth): convert wsdcId to string for Prisma compatibility

This commit is contained in:
Radosław Gierwiało
2025-12-07 20:11:27 +01:00
parent 1013d12da1
commit c6cea11bec

View File

@@ -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,