update post function

This commit is contained in:
Lukas Nowy 2018-11-14 00:25:47 +01:00
parent c94a631b1a
commit 7cfcc507ad

View File

@ -90,7 +90,7 @@ router.get("/sharedshoppinglists", async function(req, res, next) {
router.post("/shoppinglist", async function(req, res, next) {
try {
res.status(200).send(await postgres.newShoppinglist(req.body.name, req.body.description, req.session.passport.user.profile.id));
res.status(200).send(await postgres.newShoppinglist(req.body.name, req.body.description, "testuser"));
}
catch(err) {