provide correct data to getLatestTimestamp call

This commit is contained in:
David Tsay 2020-03-09 10:59:05 -07:00
parent 4a5e106709
commit 24bade2284

View File

@ -211,7 +211,7 @@ export default class ConditionClass extends EventEmitter {
.then(results => { .then(results => {
results.forEach(result => { results.forEach(result => {
this.updateCriteriaResults(result); this.updateCriteriaResults(result);
this.latestTimestamp = this.getLatestTimestamp(this.latestTimestamp, result) this.latestTimestamp = this.getLatestTimestamp(this.latestTimestamp, result.data)
}); });
this.evaluate(); this.evaluate();
@ -264,7 +264,6 @@ export default class ConditionClass extends EventEmitter {
timestamp[timeSystem.key] = compare[timeSystem.key]; timestamp[timeSystem.key] = compare[timeSystem.key];
} }
}); });
return timestamp; return timestamp;
} }