Skip to content

Commit 6266b5b

Browse files
authored
fix delete in db.js in d-messenger
1 parent 97db6a4 commit 6266b5b

File tree

1 file changed

+1
-1
lines changed
  • JavaScript/d-messenger/lib

1 file changed

+1
-1
lines changed

JavaScript/d-messenger/lib/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const crud = (pool) => (table) => ({
4646
},
4747

4848
async delete(id) {
49-
const sql = 'DELETE FROM ${table} WHERE id = $1';
49+
const sql = `DELETE FROM ${table} WHERE id = $1`;
5050
return pool.query(sql, [id]);
5151
},
5252
});

0 commit comments

Comments
 (0)