Fixed queuing daily rules

This commit is contained in:
M66B 2023-06-04 16:59:19 +02:00
parent c31adebf5a
commit d95cc81bcf
1 changed files with 4 additions and 5 deletions

View File

@ -108,14 +108,13 @@ public class WorkerDailyRules extends Worker {
EntityOperation.queue(context, message, EntityOperation.BODY);
}
if (defer) {
if (defer)
EntityOperation.queue(context, message, EntityOperation.RULE, -1L);
continue;
else {
EntityLog.log(context, "Executing daily rules message=" + message.id);
EntityRule.run(context, rules, message, null, null);
}
EntityLog.log(context, "Executing daily rules message=" + message.id);
EntityRule.run(context, rules, message, null, null);
db.setTransactionSuccessful();
} catch (Throwable ex) {
Log.e(ex);