fix: 修复提交挑战的问题

This commit is contained in:
richarjiang
2026-05-10 21:28:37 +08:00
parent 642ccd31d3
commit 06628b0a82
2 changed files with 5 additions and 3 deletions

View File

@@ -45,7 +45,7 @@
<claude-mem-context>
# Memory Context
# $CMEM MemeMind-Server 2026-05-10 3:41pm GMT+8
# $CMEM MemeMind-Server 2026-05-10 9:17pm GMT+8
No previous sessions found.
</claude-mem-context>

View File

@@ -75,9 +75,11 @@ export class ShareParticipantRepository {
.insert()
.into(ShareParticipant)
.values(data)
// TypeORM passes these identifiers through in MySQL ON DUPLICATE KEY
// UPDATE, so use database column names instead of entity property names.
.orUpdate(
['correctCount', 'totalTimeSpent', 'submittedAt'],
['shareConfigId', 'participantId'],
['correct_count', 'total_time_spent', 'submitted_at'],
['share_config_id', 'participant_id'],
)
.execute();
}