fix: recently broke counting service sql

This commit is contained in:
KernelDeimos 2024-10-28 19:14:15 -04:00
parent f1087953b5
commit 7ba16d1c21

View File

@ -156,7 +156,7 @@ class ConfigurableCountingService extends BaseService {
Object.keys(required_data).map(() => '?').join(', ') Object.keys(required_data).map(() => '?').join(', ')
}, 1, ${custom_col_values.map(() => '?').join(', ')}) ` + }, 1, ${custom_col_values.map(() => '?').join(', ')}) ` +
this.db.case({ this.db.case({
mysql: 'ON DUIPLICATE KEY UPDATE ' + duplicate_update_part, mysql: 'ON DUPLICATE KEY UPDATE ' + duplicate_update_part,
sqlite: `ON CONFLICT(${ sqlite: `ON CONFLICT(${
identifying_keys.map(v => `\`${v}\``).join(', ') identifying_keys.map(v => `\`${v}\``).join(', ')
}) DO UPDATE SET ${duplicate_update_part}`, }) DO UPDATE SET ${duplicate_update_part}`,