Skip to content
Snippets Groups Projects
Commit 83a60dc1 authored by Herman Ryen Martinsen's avatar Herman Ryen Martinsen
Browse files

La til metode for å oppdatere en person

parent 006d767c
Branches master
No related tags found
No related merge requests found
Pipeline #22808 passed
......@@ -21,4 +21,13 @@ module.exports = class PersonDao extends Dao {
callback
);
}
updateOne(json, callback) {
var val = [json.navn, json.adresse, json.alder, json.id];
super.query(
"update person set navn=?, adresse=?, alder=?, where id=?",
val,
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