Skip to content
Snippets Groups Projects
Commit 0ff9b97c authored by Lars Sørlie's avatar Lars Sørlie
Browse files

fixed my fuck up

parent 1b28bdb3
No related branches found
No related tags found
No related merge requests found
Pipeline #22402 failed
...@@ -32,7 +32,7 @@ module.exports = class PersonDao extends Dao { ...@@ -32,7 +32,7 @@ module.exports = class PersonDao extends Dao {
); );
} }
updateOne(id,data,callback){ updateOne(id,json,callback){
let val = [json.navn, json.adresse, json.alder, json.id]; let 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 = ?",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment