fix: 修复提交挑战的问题
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
<claude-mem-context>
|
<claude-mem-context>
|
||||||
# Memory 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.
|
No previous sessions found.
|
||||||
</claude-mem-context>
|
</claude-mem-context>
|
||||||
@@ -75,9 +75,11 @@ export class ShareParticipantRepository {
|
|||||||
.insert()
|
.insert()
|
||||||
.into(ShareParticipant)
|
.into(ShareParticipant)
|
||||||
.values(data)
|
.values(data)
|
||||||
|
// TypeORM passes these identifiers through in MySQL ON DUPLICATE KEY
|
||||||
|
// UPDATE, so use database column names instead of entity property names.
|
||||||
.orUpdate(
|
.orUpdate(
|
||||||
['correctCount', 'totalTimeSpent', 'submittedAt'],
|
['correct_count', 'total_time_spent', 'submitted_at'],
|
||||||
['shareConfigId', 'participantId'],
|
['share_config_id', 'participant_id'],
|
||||||
)
|
)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user