Skip to content

Commit

Permalink
Fix on setting state of the db with data.json cloned values.
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaoncode committed May 28, 2016
1 parent d8fca18 commit 38b148d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const router = jsonServer.router(clone(data))

app.use((req, res, next) => {
if (req.path === '/') return next()
router.db.state(clone(data))
router.db.setState(clone(data))
next()
})

Expand Down

0 comments on commit 38b148d

Please sign in to comment.