Navigate to single system folder

This commit is contained in:
M66B
2022-03-13 16:00:04 +01:00
parent cb168a6133
commit 69d6d99196
3 changed files with 43 additions and 6 deletions

View File

@@ -219,7 +219,10 @@ public interface DaoFolder {
" WHERE account = :account AND type = :type")
EntityFolder getFolderByType(long account, String type);
@Query("SELECT * FROM folder WHERE type = :type")
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize" +
" AND type = :type")
List<EntityFolder> getFoldersByType(String type);
@Query("SELECT folder.* FROM folder" +