Skip to content

Commit fb4a924

Browse files
mrerbergtshemsedinov
authored andcommitted
Edit query
1 parent 07da306 commit fb4a924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript/3-crud/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = (table) => ({
5353
},
5454

5555
delete(id) {
56-
const sql = 'DELETE FROM ${table} WHERE id = $1';
56+
const sql = `DELETE FROM ${table} WHERE id = $1`;
5757
return pool.query(sql, [id]);
5858
},
5959
});

0 commit comments

Comments
 (0)