Reset folder state on cancelling sync ops

This commit is contained in:
M66B
2020-03-11 09:11:35 +01:00
parent f7a585e181
commit 4eadb534e7
2 changed files with 11 additions and 5 deletions

View File

@@ -100,6 +100,9 @@ public interface DaoOperation {
@Query("SELECT * FROM operation WHERE name = :name")
List<EntityOperation> getOperations(String name);
@Query("SELECT * FROM operation WHERE account = :account AND name = :name")
List<EntityOperation> getOperations(long account, String name);
@Query("SELECT * FROM operation WHERE id = :id")
EntityOperation getOperation(long id);
@@ -139,7 +142,4 @@ public interface DaoOperation {
@Query("DELETE FROM operation WHERE id = :id")
int deleteOperation(long id);
@Query("DELETE FROM operation WHERE account = :account AND name = :name")
int deleteOperations(long account, String name);
}