diff --git a/AGENTS.md b/AGENTS.md index 96816a2..a558ce7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,7 +45,7 @@ # 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 newline at end of file diff --git a/src/modules/share/repositories/share-participant.repository.ts b/src/modules/share/repositories/share-participant.repository.ts index fb65456..c8e0669 100644 --- a/src/modules/share/repositories/share-participant.repository.ts +++ b/src/modules/share/repositories/share-participant.repository.ts @@ -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(); }