completionId: cgen-76302c12344547ff927d6e5efb6f069e
cgen-76302c12344547ff927d6e5efb6f069e
This commit is contained in:
parent
245d4f54ea
commit
710788acb0
1 changed files with 15 additions and 0 deletions
|
|
@ -291,6 +291,21 @@ export const aethexUserService = {
|
|||
}
|
||||
|
||||
const normalized = normalizeProfile(data, user.email);
|
||||
|
||||
// Auto-populate username for mrpiglr if empty
|
||||
if (
|
||||
normalized &&
|
||||
user.email === "mrpiglr@gmail.com" &&
|
||||
!normalized.username
|
||||
) {
|
||||
await this.updateProfile(user.id, {
|
||||
username: "mrpiglr",
|
||||
}).catch((err) => {
|
||||
console.warn("[Profile] Failed to auto-populate mrpiglr username:", err);
|
||||
});
|
||||
normalized.username = "mrpiglr";
|
||||
}
|
||||
|
||||
return await ensureDailyStreakForProfile(normalized);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue