fix: empty tags (#581)

This commit is contained in:
Yogesh Choudhary Paliyal
2023-05-27 19:34:48 +05:30
committed by GitHub
parent 75c76af5b7
commit 228f312619

View File

@@ -81,7 +81,7 @@ interface DbDao {
@Query("SELECT * FROM account WHERE unique_id = :uniqueId")
suspend fun getAccount(uniqueId: String?): AccountModel?
@Query("SELECT DISTINCT tags FROM account")
@Query("SELECT DISTINCT tags FROM account WHERE tags IS NOT NULL AND tags <> ''")
fun getTags(): Flow<List<String>>
@Query("DELETE from account WHERE id = :id")