From 24bade2284df81fef15d3d3ad6a74752e27e6324 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Mon, 9 Mar 2020 10:59:05 -0700 Subject: [PATCH] provide correct data to getLatestTimestamp call --- src/plugins/condition/Condition.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/condition/Condition.js b/src/plugins/condition/Condition.js index a8d1282577..d00303e4cf 100644 --- a/src/plugins/condition/Condition.js +++ b/src/plugins/condition/Condition.js @@ -211,7 +211,7 @@ export default class ConditionClass extends EventEmitter { .then(results => { results.forEach(result => { this.updateCriteriaResults(result); - this.latestTimestamp = this.getLatestTimestamp(this.latestTimestamp, result) + this.latestTimestamp = this.getLatestTimestamp(this.latestTimestamp, result.data) }); this.evaluate(); @@ -264,7 +264,6 @@ export default class ConditionClass extends EventEmitter { timestamp[timeSystem.key] = compare[timeSystem.key]; } }); - return timestamp; }