mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Small improvements
This commit is contained in:
@@ -31,7 +31,9 @@ public interface DaoOperation {
|
||||
@Query("SELECT * FROM operation WHERE message = :message ORDER BY id")
|
||||
LiveData<List<EntityOperation>> getOperationsByMessage(long message);
|
||||
|
||||
@Query("SELECT * FROM operation WHERE folder = :folder ORDER BY id")
|
||||
@Query("SELECT * FROM operation" +
|
||||
" WHERE folder = :folder" +
|
||||
" ORDER BY CASE WHEN name = '" + EntityOperation.SYNC + "' THEN 1 ELSE 0 END, id")
|
||||
List<EntityOperation> getOperationsByFolder(long folder);
|
||||
|
||||
@Query("SELECT * FROM operation ORDER BY id")
|
||||
|
||||
Reference in New Issue
Block a user