update post function
This commit is contained in:
parent
c94a631b1a
commit
7cfcc507ad
@ -90,7 +90,7 @@ router.get("/sharedshoppinglists", async function(req, res, next) {
|
|||||||
|
|
||||||
router.post("/shoppinglist", async function(req, res, next) {
|
router.post("/shoppinglist", async function(req, res, next) {
|
||||||
try {
|
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) {
|
catch(err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user