From bd820f9fbfb6e79004265aedce0a988b734c0287 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 25 May 2017 12:29:53 +0200 Subject: [PATCH] Properly clear route when updating it --- server/database/route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/database/route.js b/server/database/route.js index 7545a434..c64de8e2 100644 --- a/server/database/route.js +++ b/server/database/route.js @@ -118,7 +118,7 @@ module.exports = function(Database) { return this._conn.model("RoutePoint").destroy({ where: { - id: routeId + routeId } }).then(() => {}); },