Fixed debug error

master
Keith Irwin 2018-02-01 18:59:38 +00:00
parent 854a5ee1c3
commit 488f176774
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 2 additions and 1 deletions

View File

@ -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