Allow refreshing unified system folders

This commit is contained in:
M66B
2019-07-22 14:42:03 +02:00
parent ed92a999f0
commit 958982481d
3 changed files with 7 additions and 6 deletions

View File

@@ -53,8 +53,9 @@ public interface DaoFolder {
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize" +
" AND folder.synchronize AND unified")
List<EntityFolder> getFoldersSynchronizingUnified();
" AND folder.synchronize" +
" AND ((:type IS NULL AND folder.unified) OR folder.type = :type)")
List<EntityFolder> getFoldersSynchronizingUnified(String type);
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +