|
|
|
@ -411,7 +411,8 @@ public class ActFmSyncV2Provider extends SyncV2Provider {
|
|
|
|
|
|
|
|
|
|
private void pushQueuedTasksByTag(TagData tagData, SyncResultCallback callback, AtomicInteger finisher) {
|
|
|
|
|
TodorooCursor<Task> taskCursor = taskService.query(Query.select(Task.PROPERTIES)
|
|
|
|
|
.join(Join.inner(Metadata.TABLE, Criterion.and(Metadata.KEY.eq(TagService.KEY), Metadata.TASK.eq(Task.ID), TagService.TAG.eq(tagData.getId()))))
|
|
|
|
|
.join(Join.inner(Metadata.TABLE, Criterion.and(Metadata.KEY.eq(TagService.KEY), Metadata.TASK.eq(Task.ID),
|
|
|
|
|
TagService.TAG.eqCaseInsensitive(tagData.getValue(TagData.NAME)))))
|
|
|
|
|
.where(Criterion.or(
|
|
|
|
|
Criterion.and(TaskCriteria.isActive(),
|
|
|
|
|
Task.REMOTE_ID.isNull()),
|
|
|
|
|