From 2cb804f4b37045f6482083a4e9945dd591b7ba33 Mon Sep 17 00:00:00 2001 From: baldo Date: Sun, 13 Aug 2017 18:55:56 +0200 Subject: [PATCH] Fix for deletion job: Don't try to delete key files for gateways. --- server/services/monitoringService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/services/monitoringService.js b/server/services/monitoringService.js index 48426f5..067473d 100644 --- a/server/services/monitoringService.js +++ b/server/services/monitoringService.js @@ -769,7 +769,9 @@ angular.module('ffffng') async.seq( function (callback) { - if (node) { + if (node && node.token) { + // If the node has no token it is a special node (e.g. a gateway) + // we need to skip. return NodeService.deleteNode(node.token, callback); } return callback(null);