From dd4a2c3d2be6ab5717623dcb183653b8b6b20ea4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 19 Dec 2018 17:30:02 +0100 Subject: [PATCH] fix updating CalDAV event importID and source to prevent duplication --- .../com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt index 1926eb38f..0c6749744 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt @@ -96,7 +96,7 @@ interface EventsDao { @Query("UPDATE events SET event_type = $REGULAR_EVENT_TYPE_ID WHERE event_type = :eventTypeId") 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) @Query("UPDATE events SET repeat_limit = :repeatLimit WHERE id = :id")