mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 12:54:11 +01:00
Prevent deleting executing operations
This commit is contained in:
@@ -150,6 +150,8 @@ public interface DaoOperation {
|
||||
@Query("DELETE FROM operation WHERE id = :id")
|
||||
int deleteOperation(long id);
|
||||
|
||||
@Query("DELETE FROM operation WHERE folder = :folder")
|
||||
int deleteOperations(long folder);
|
||||
@Query("DELETE FROM operation" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND state <> 'executing'")
|
||||
int deletePendingOperations(long folder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user