mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Synchronizing accounts by type
This commit is contained in:
@@ -33,9 +33,11 @@ public interface DaoAccount {
|
||||
" ORDER BY `order`, `primary` DESC, name COLLATE NOCASE")
|
||||
List<EntityAccount> getAccounts();
|
||||
|
||||
@Query("SELECT * FROM account WHERE synchronize" +
|
||||
@Query("SELECT * FROM account" +
|
||||
" WHERE synchronize" +
|
||||
" AND (:type IS NULL OR pop = :type)" +
|
||||
" ORDER BY `order`, `primary` DESC, name COLLATE NOCASE")
|
||||
List<EntityAccount> getSynchronizingAccounts();
|
||||
List<EntityAccount> getSynchronizingAccounts(Integer type);
|
||||
|
||||
@Query("SELECT * FROM account" +
|
||||
" WHERE (:id IS NULL OR id = :id)" +
|
||||
|
||||
Reference in New Issue
Block a user