diff --git a/server/utils/baaPagination.ts b/server/utils/baaPagination.ts index 76bf4cc..ea3cd0f 100644 --- a/server/utils/baaPagination.ts +++ b/server/utils/baaPagination.ts @@ -148,7 +148,7 @@ export default class BaaPagination body[field])); await database.query( - "INSERT INTO `clients` " + + `INSERT INTO \`${this.table}\` ` + `(\`${this.key}\`,\`${fields.join("`, `")}\`) ` + "VALUES (" + "?, ".repeat(fields.length) +