Skip to content
Snippets Groups Projects
Commit 69486eca authored by jorgstei's avatar jorgstei
Browse files

insertid

parent 611ff2fe
Branches
No related tags found
No related merge requests found
Pipeline #49741 failed
......@@ -92,7 +92,7 @@ test("update person from db", done => {
personDao.createOne(
{navn: "juns", alder: 60, adresse: "stuff"},
(status, data) => {
personDao.updateOne({id: 1, navn: "Jorgen Steig", alder: 20, adresse: "Lirkjudali 27"}, callback);
personDao.updateOne({id: data.insertId, navn: "Jorgen Steig", alder: 20, adresse: "Lirkjudali 27"}, callback);
}
)
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment