Bugfix/Update mysql record manager update (#3199)

update mysql record manager update
This commit is contained in:
Henry Heng
2024-09-16 16:53:53 +01:00
committed by GitHub
parent b02bdc74ad
commit 1ceea81100
@@ -258,7 +258,7 @@ class MySQLRecordManager implements RecordManagerInterface {
const query = `
INSERT INTO \`${this.tableName}\` (\`key\`, \`namespace\`, \`updated_at\`, \`group_id\`)
VALUES (?, ?, ?, ?)
ON DUPLICATE KEY UPDATE updated_at = updated_at;`
ON DUPLICATE KEY UPDATE \`updated_at\` = VALUES(\`updated_at\`)`
// To handle multiple files upsert
for (const record of recordsToUpsert) {