Skip to content

Commit

Permalink
Fix DB
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Dec 20, 2024
1 parent b276a8a commit 1265cf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotificationEntity>

@Insert(onConflict = OnConflictStrategy.REPLACE)
Expand Down

0 comments on commit 1265cf7

Please sign in to comment.