diff --git a/process/sendPlannedBulkmails_serverProcess/process.js b/process/sendPlannedBulkmails_serverProcess/process.js index 33a93d439e0e88c49e5fbacec77c4e43954f1a17..3f74ac7a527a49ae1dbe7fc416e40edf21e2aecd 100644 --- a/process/sendPlannedBulkmails_serverProcess/process.js +++ b/process/sendPlannedBulkmails_serverProcess/process.js @@ -25,6 +25,6 @@ for (let i = 0; i < bulkMailData.length; i++) } //set all missed bulkmails to status missed -newWhere("BULKMAIL.STATUS",$KeywordRegistry.bulkMailStatus$planned()) - .and("BULKMAIL.DATE_TO_SEND",eMath.subInt(datetime.date(), eMath.mulInt(dateToSendPassedAfter, datetime.ONE_HOUR)), SqlBuilder.LESS_OR_EQUAL()) - .updateFields({"STATUS" : $KeywordRegistry.bulkMailStatus$missed()}); \ No newline at end of file +newWhere("BULKMAIL.STATUS", $KeywordRegistry.bulkMailStatus$planned()) + .and("BULKMAIL.DATE_TO_SEND", eMath.subInt(datetime.date(), eMath.mulInt(dateToSendPassedAfter, datetime.ONE_HOUR)), SqlBuilder.LESS_OR_EQUAL()) + .updateFields({"STATUS": $KeywordRegistry.bulkMailStatus$missed()}); \ No newline at end of file