From 706ab46d5559fbf71abc3fc3999613e8857dfe98 Mon Sep 17 00:00:00 2001 From: typicode Date: Sun, 3 Jul 2016 19:31:40 +0200 Subject: [PATCH] Use deep equal --- src/cli/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/run.js b/src/cli/run.js index cd0ab7e..9e3d386 100644 --- a/src/cli/run.js +++ b/src/cli/run.js @@ -161,7 +161,7 @@ module.exports = function (argv) { if (is.JSON(file)) { var obj = JSON.parse(fs.readFileSync(file)) // Compare .json file content with in memory database - var isDatabaseDifferent = !_.eq(obj, app.db.getState()) + var isDatabaseDifferent = !_.isEqual(obj, app.db.getState()) if (isDatabaseDifferent) { console.log(chalk.gray(' ' + file + ' has changed, reloading...')) server && server.destroy()