From 488f176774b681fec8584f01116deb0e43cb490b Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 1 Feb 2018 18:59:38 +0000 Subject: [PATCH] Fixed debug error --- config/sockets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/sockets.js b/config/sockets.js index 406287d..e27422b 100755 --- a/config/sockets.js +++ b/config/sockets.js @@ -95,7 +95,8 @@ module.exports = { } else { // Check that loc is newer than lastLoc - debug(`Checking that loc of ${loc.tim} is newer than last of ${user.last.time.getTime()}...`) + debug(`Checking that loc of ${loc.tim} is newer than last of + ${(user.last.time)?user.last.time.getTime():user.last.time}...`) if (!user.last.time || loc.tim > user.last.time.getTime()) { // Broadcast location