Fixed composable identities

This commit is contained in:
M66B
2019-02-03 13:50:17 +00:00
parent a2e585b0ed
commit e668ae6fa1
2 changed files with 4 additions and 4 deletions

View File

@@ -37,8 +37,8 @@ public interface DaoIdentity {
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
" JOIN account ON account.id = identity.account" +
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
" WHERE NOT :synchronize OR account.synchronize")
List<TupleIdentityEx> getComposableIdentities(boolean synchronize);
" WHERE identity.synchronize AND account.synchronize")
List<TupleIdentityEx> getComposableIdentities();
@Query("SELECT * FROM identity WHERE account = :account")
List<EntityIdentity> getIdentities(long account);