fix(auth): convert wsdcId to string for Prisma compatibility
This commit is contained in:
@@ -57,7 +57,7 @@ async function register(req, res, next) {
|
|||||||
OR: [
|
OR: [
|
||||||
{ email },
|
{ email },
|
||||||
{ username },
|
{ username },
|
||||||
...(wsdcId ? [{ wsdcId }] : []),
|
...(wsdcId ? [{ wsdcId: String(wsdcId) }] : []),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -95,7 +95,7 @@ async function register(req, res, next) {
|
|||||||
passwordHash,
|
passwordHash,
|
||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
wsdcId,
|
wsdcId: wsdcId ? String(wsdcId) : null,
|
||||||
verificationToken,
|
verificationToken,
|
||||||
verificationCode,
|
verificationCode,
|
||||||
verificationTokenExpiry,
|
verificationTokenExpiry,
|
||||||
|
|||||||
Reference in New Issue
Block a user