ENCOA-136: Profile Pictures of all accounts should be by Default Encoach Logo

This commit is contained in:
Tiago Ribeiro
2024-08-29 12:51:10 +01:00
parent 73525f1dc0
commit 3b77d3fc0b
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ async function registerIndividual(req: NextApiRequest, res: NextApiResponse) {
levels: DEFAULT_LEVELS,
bio: "",
isFirstLogin: codeData ? codeData.type === "student" : true,
profilePicture: "/defaultAvatar.png",
focus: "academic",
type: email.endsWith("@ecrop.dev") ? "developer" : codeData ? codeData.type : "student",
subscriptionExpirationDate: codeData ? codeData.expiryDate : moment().subtract(1, "days").toISOString(),