Updated / account type

This commit is contained in:
M66B
2022-04-17 14:04:00 +02:00
parent 49d8a0167b
commit 43ab783ac3
4 changed files with 13 additions and 13 deletions

View File

@@ -155,9 +155,10 @@ public interface DaoAccount {
@Query("SELECT * FROM account" +
" WHERE user = :user" +
" AND pop = :protocol" +
" AND auth_type IN (:auth_type)" +
" AND tbd IS NULL")
List<EntityAccount> getAccounts(String user, int[] auth_type);
List<EntityAccount> getAccounts(String user, int protocol, int[] auth_type);
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();