fix updating CalDAV event importID and source to prevent duplication

This commit is contained in:
tibbi 2018-12-19 17:30:02 +01:00
parent fb2cf62783
commit dd4a2c3d2b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ interface EventsDao {
@Query("UPDATE events SET event_type = $REGULAR_EVENT_TYPE_ID WHERE event_type = :eventTypeId") @Query("UPDATE events SET event_type = $REGULAR_EVENT_TYPE_ID WHERE event_type = :eventTypeId")
fun resetEventsWithType(eventTypeId: Long) fun resetEventsWithType(eventTypeId: Long)
@Query("UPDATE events SET import_id = :importId AND source = :source WHERE id = :id") @Query("UPDATE events SET import_id = :importId, source = :source WHERE id = :id")
fun updateEventImportIdAndSource(importId: String, source: String, id: Long) fun updateEventImportIdAndSource(importId: String, source: String, id: Long)
@Query("UPDATE events SET repeat_limit = :repeatLimit WHERE id = :id") @Query("UPDATE events SET repeat_limit = :repeatLimit WHERE id = :id")