core: fix contest scoreboard

This commit is contained in:
undefined committed 2024-07-04 16:42:20 +08:00
1 parent c996bbfe6d
commit 8fece6288d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 } });