From e5ea068d96b576d6e680db3a7bb4d9508197fd58 Mon Sep 17 00:00:00 2001 From: jzakotnik Date: Mon, 2 Aug 2021 22:43:56 +0200 Subject: [PATCH] fixed init variable --- nextjs/mwe/pages/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextjs/mwe/pages/admin.js b/nextjs/mwe/pages/admin.js index ad7125a..7fe52c3 100644 --- a/nextjs/mwe/pages/admin.js +++ b/nextjs/mwe/pages/admin.js @@ -40,7 +40,7 @@ export default function Admin(props) { console.log("Create links.."); event.preventDefault(); const authid = { admin: uuidv4(), reader: uuidv4() }; - const defaultLunchProfile = { + const dayselection = { mon: true, tue: true, wed: true, @@ -50,7 +50,7 @@ export default function Admin(props) { fetch("http://localhost:3000/api/insertData", { method: "POST", - body: JSON.stringify({ authid, defaultLunchProfile }), + body: JSON.stringify({ authid, dayselection }), headers: { "Content-Type": "application/json", },