Skip to content

Commit 706ab46

Browse files
committed
Use deep equal
1 parent 604e840 commit 706ab46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = function (argv) {
161161
if (is.JSON(file)) {
162162
var obj = JSON.parse(fs.readFileSync(file))
163163
// Compare .json file content with in memory database
164-
var isDatabaseDifferent = !_.eq(obj, app.db.getState())
164+
var isDatabaseDifferent = !_.isEqual(obj, app.db.getState())
165165
if (isDatabaseDifferent) {
166166
console.log(chalk.gray(' ' + file + ' has changed, reloading...'))
167167
server && server.destroy()

0 commit comments

Comments
 (0)