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 0862f8938..9cbdf73d6 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 @@ -21,7 +21,7 @@ interface EventsDao { @Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_TASK") fun getTaskWithId(id: Long): Event? - @Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_EVENT OR type = $TYPE_TASK") + @Query("SELECT * FROM events WHERE id = :id AND (type = $TYPE_EVENT OR type = $TYPE_TASK)") fun getEventOrTaskWithId(id: Long): Event? @Query("SELECT * FROM events WHERE import_id = :importId AND type = $TYPE_EVENT")