imageFilenames and imageFilename, backend integration tests, frontend tests, removed username references
This commit is contained in:
@@ -101,12 +101,14 @@ router.post(
|
||||
phone,
|
||||
});
|
||||
|
||||
// Link alpha invitation to user
|
||||
await alphaInvitation.update({
|
||||
usedBy: user.id,
|
||||
usedAt: new Date(),
|
||||
status: "active",
|
||||
});
|
||||
// Link alpha invitation to user (only if alpha testing is enabled)
|
||||
if (alphaInvitation) {
|
||||
await alphaInvitation.update({
|
||||
usedBy: user.id,
|
||||
usedAt: new Date(),
|
||||
status: "active",
|
||||
});
|
||||
}
|
||||
|
||||
// Generate verification token and send email
|
||||
await user.generateVerificationToken();
|
||||
@@ -367,7 +369,7 @@ router.post(
|
||||
lastName,
|
||||
authProvider: "google",
|
||||
providerId: googleId,
|
||||
profileImage: picture,
|
||||
imageFilename: picture,
|
||||
isVerified: true,
|
||||
verifiedAt: new Date(),
|
||||
});
|
||||
@@ -434,7 +436,7 @@ router.post(
|
||||
email: user.email,
|
||||
firstName: user.firstName,
|
||||
lastName: user.lastName,
|
||||
profileImage: user.profileImage,
|
||||
imageFilename: user.imageFilename,
|
||||
isVerified: user.isVerified,
|
||||
role: user.role,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user