Skip to content

Commit

Permalink
fix: delete query db name
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Jul 26, 2024
1 parent 45b438d commit d56cd2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ return require"json".encode(tables)`

async function deleteRow(row: { [foo: string]: string }) {
console.log('deleting', row)
const query = `local res = ${tableName}:exec([[DELETE FROM ${tableName} WHERE ${Object.keys(row).map(k => `${k} = ${typeof row[k] == "string" ? `"${row[k]}"` : row[k]}`).join(" AND ")}]])
const query = `local res = ${dbName}:exec([[DELETE FROM ${tableName} WHERE ${Object.keys(row).map(k => `${k} = ${typeof row[k] == "string" ? `"${row[k]}"` : row[k]}`).join(" AND ")}]])
return res`
console.log(query)
setDeletingRow(true)
Expand Down

0 comments on commit d56cd2a

Please sign in to comment.