Synchronize folders of enabled accounts only

This commit is contained in:
M66B 2019-01-14 13:25:13 +00:00
parent 62e1d8eedb
commit 71e83e2c7f
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ public interface DaoFolder {
" ORDER BY CASE WHEN folder.type = '" + EntityFolder.USER + "' THEN 1 ELSE 0 END")
List<EntityFolder> getFolders(long account, boolean synchronize);
@Query("SELECT * FROM folder WHERE synchronize")
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize AND folder.synchronize")
List<EntityFolder> getFoldersSynchronizing();
@Query("SELECT folder.* FROM folder" +