Skip to content
Snippets Groups Projects
Commit 7a604aad authored by Marius Nygard's avatar Marius Nygard
Browse files

asd

parent 989b81a4
Branches master
No related tags found
No related merge requests found
Pipeline #22447 failed
......@@ -21,4 +21,12 @@ module.exports = class PersonDao extends Dao {
callback
);
}
changeName(id,callback){
var val = [id.navn, id.id]
super.query(
"update person set navn=? where id=?",
val,
callback
);
}
};
......@@ -85,5 +85,5 @@ test("oppdate en pers", done=>{
done();
}
personDao.ChangeName(["forandra",0],callback);
personDao.changeName(["forandra",0],callback);
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment