Update unique accounts only

This commit is contained in:
M66B
2021-10-06 10:44:16 +02:00
parent b6a4704383
commit 8c993e9b02
3 changed files with 15 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ public interface DaoAccount {
@Query("SELECT * FROM account" +
" WHERE user = :user" +
" AND auth_type = :auth_type")
EntityAccount getAccount(String user, int auth_type);
List<EntityAccount> getAccounts(String user, int auth_type);
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();