fix: 修复提交挑战的问题
This commit is contained in:
@@ -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>
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user