mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
fix: recently broke counting service sql
This commit is contained in:
parent
f1087953b5
commit
7ba16d1c21
@ -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}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user