Skip to content
Snippets Groups Projects
Commit 7aedf13b authored by Erlend Sundøy's avatar Erlend Sundøy
Browse files

nice bra sakær

parent 22b1ca08
No related branches found
No related tags found
No related merge requests found
Pipeline #22791 failed
...@@ -25,7 +25,7 @@ module.exports = class PersonDao extends Dao { ...@@ -25,7 +25,7 @@ module.exports = class PersonDao extends Dao {
updateOne(json, callback) { updateOne(json, callback) {
var val = [json.navn, json.adresse, json.alder, json.id]; var val = [json.navn, json.adresse, json.alder, json.id];
super.query( super.query(
"update person set navn = ?, adresse = ?, alder = ?) where id = ?", "update person set navn = ?, adresse = ?, alder = ? where id = ?",
val, val,
callback callback
); );
...@@ -33,7 +33,7 @@ module.exports = class PersonDao extends Dao { ...@@ -33,7 +33,7 @@ module.exports = class PersonDao extends Dao {
deleteOne(id, callback) { deleteOne(id, callback) {
super.query( super.query(
"delete person where id = ?", "delete from person where id = ?",
[id], [id],
callback callback
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment