mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix contest scoreboard
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -678,7 +678,7 @@ export const coreScripts: MigrationScript[] = [
|
||||
const wanted = handleMailLower(udoc.mail);
|
||||
if (wanted !== udoc.mailLower) {
|
||||
if (await user.getByEmail('system', wanted)) {
|
||||
console.warn('Email conflict: %s', wanted);
|
||||
console.warn('Email conflict when trying to rename %s to %s', udoc.mailLower, wanted);
|
||||
return;
|
||||
}
|
||||
await user.coll.updateOne({ _id: udoc._id }, { $set: { mailLower: wanted } });
|
||||
|
||||
Reference in new issue
Block a user