Skip to content

Commit 1004145

Browse files
author
scull1916
committed
correct console logs in html routes
1 parent e26a9b2 commit 1004145

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"development": {
33
"username": "root",
4-
"password": "",
4+
"password": "root",
55
"database": "story_db",
66
"host": "127.0.0.1",
77
"dialect": "mysql"

routes/htmlRoutes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ router.post('/S3', parser.single('selectedFile'), function (req, res) {
3131
EventId: req.body.storyId
3232
}).then(function(dbEvent) {
3333
console.log("dataValues updatedAt: ", dbEvent.dataValues.updatedAt);
34-
console.log("dataValues EventId: ", dataValues.EventId);
34+
console.log("dataValues EventId: ", dbEvent.dataValues.EventId);
3535
res.json(dbEvent);
3636
});
3737
});

0 commit comments

Comments
 (0)