Prefer send identity for auto select

This commit is contained in:
M66B
2022-12-18 12:01:10 +01:00
parent d5f50a0ab5
commit 148c39fe03
2 changed files with 11 additions and 17 deletions

View File

@@ -59,9 +59,9 @@ public interface DaoContact {
@Query("SELECT DISTINCT identity FROM contact" +
" WHERE email = :email" +
" AND type IN (:types)" +
" AND type = :type" +
" AND NOT identity IS NULL")
List<Long> getIdentities(String email, List<Integer> types);
List<Long> getIdentities(String email, int type);
@Query("SELECT *" +
" FROM contact" +