diff --git a/app/src/main/java/com/koalasat/pokey/database/ApplicationDao.kt b/app/src/main/java/com/koalasat/pokey/database/ApplicationDao.kt index 77c3901..da379a8 100644 --- a/app/src/main/java/com/koalasat/pokey/database/ApplicationDao.kt +++ b/app/src/main/java/com/koalasat/pokey/database/ApplicationDao.kt @@ -15,7 +15,7 @@ interface ApplicationDao { @Query("SELECT EXISTS (SELECT 1 FROM notification WHERE eventId = :eventId)") fun existsNotification(eventId: String): Int - @Query("SELECT * FROM notification WHERE title != NULL ORDER BY time DESC") + @Query("SELECT * FROM notification WHERE title != '' ORDER BY time DESC") fun getNotifications(): List @Insert(onConflict = OnConflictStrategy.REPLACE)