mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Fix favourites erased when new circulars are saved
This commit is contained in:
@@ -47,7 +47,7 @@ interface CircularDao {
|
|||||||
@Query("SELECT * FROM circulars WHERE reminder AND name LIKE :query ORDER BY id DESC")
|
@Query("SELECT * FROM circulars WHERE reminder AND name LIKE :query ORDER BY id DESC")
|
||||||
fun searchReminders(query: String): LiveData<List<Circular>>
|
fun searchReminders(query: String): LiveData<List<Circular>>
|
||||||
|
|
||||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
||||||
fun insertAll(circulars: List<Circular>)
|
fun insertAll(circulars: List<Circular>)
|
||||||
|
|
||||||
@Update
|
@Update
|
||||||
|
|||||||
Reference in New Issue
Block a user