From 492e82a540c11c8ec01cabe08b2bd672b9f9e076 Mon Sep 17 00:00:00 2001 From: Maciej Kotowski Date: Mon, 4 Oct 2021 22:03:42 +0200 Subject: [PATCH] fix --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 6a54627..8e48533 100644 --- a/index.js +++ b/index.js @@ -44,6 +44,7 @@ app.post("/api/createEvent", (req, res) => { let data = { name: req.body.name, type: req.body.type, + address: req.body.address, time: req.body.time, created: { time: Date.now() }, lat: req.body.lat, diff --git a/package.json b/package.json index 2cb0547..0df2374 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "app.js", "scripts": { - "start": "node index.js", + "start": "nodemon index.js", "test": "echo \"Error: no test specified\" && exit 1", "heroku-postbuild": "cd client && npm install --only=dev && npm install && npm run build" },