Skip to content

Commit

Permalink
implemented saving of data
Browse files Browse the repository at this point in the history
  • Loading branch information
jzakotnik committed Aug 2, 2021
1 parent dd45331 commit 4e38047
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nextjs/mwe/pages/api/insertData.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export default function handler(req, res) {
console.log("Inserting data into DB");
console.log(req.body);
console.log(req.body.authid);
console.log(req.body.defaultLunchProfile);
console.log(req.body.dayselection);

const authid = req.body.authid;
const lunchprofile = req.body.defaultLunchProfile;
const readerid = req.body.readerid;
const lunchprofile = req.body.dayselection;

db.put(
authid.admin,
Expand Down

0 comments on commit 4e38047

Please sign in to comment.