hidden, color property
This commit is contained in:
@ -97,7 +97,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, req.session.passport.user.profile.id, req.body.color));
|
||||
}
|
||||
|
||||
catch(err) {
|
||||
@ -133,7 +133,7 @@ router.delete("/shoppinglist", async (req, res) => {
|
||||
|
||||
router.post("/group", async (req, res) => {
|
||||
try {
|
||||
res.status(200).send(await postgres.addGroup(req.body.sl_id, req.body.name, req.body.color));
|
||||
res.status(200).send(await postgres.addGroup(req.body.sl_id, req.body.name, req.body.color, req.body.hidden));
|
||||
}
|
||||
|
||||
catch(err) {
|
||||
|
Reference in New Issue
Block a user