Skip to content
Snippets Groups Projects
Commit 0d37ef97 authored by Abilashy's avatar Abilashy
Browse files

update

parent 1bbf5761
No related branches found
No related tags found
No related merge requests found
Pipeline #50099 passed
...@@ -22,7 +22,7 @@ module.exports = class PersonDao extends Dao { ...@@ -22,7 +22,7 @@ module.exports = class PersonDao extends Dao {
); );
} }
updateOne(json, id, 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 = ?",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment