This commit is contained in:
Wroclaw 2023-05-11 10:49:47 +02:00
parent 7c2ca8bbe4
commit 6d4cbbd1b2

View file

@ -148,7 +148,7 @@ export default class BaaPagination<T extends {[k: string]: any}, keyType extends
arrayToInsert.push(...fields.map(field => body[field])); arrayToInsert.push(...fields.map(field => body[field]));
await database.query( await database.query(
"INSERT INTO `clients` " + `INSERT INTO \`${this.table}\` ` +
`(\`${this.key}\`,\`${fields.join("`, `")}\`) ` + `(\`${this.key}\`,\`${fields.join("`, `")}\`) ` +
"VALUES (" + "VALUES (" +
"?, ".repeat(fields.length) + "?, ".repeat(fields.length) +