From 5ca7a67d6179255043814e35b2fa3e861361eb1c Mon Sep 17 00:00:00 2001 From: Naveen Date: Fri, 16 Jun 2023 00:07:18 +0530 Subject: [PATCH] Delete child tasks when parent task is deleted --- .../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 17575838e..956e4257e 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 @@ -103,7 +103,7 @@ interface EventsDao { @Query("SELECT id FROM events WHERE event_type IN (:eventTypeIds) AND type = $TYPE_EVENT") fun getEventIdsByEventType(eventTypeIds: List): List - @Query("SELECT id FROM events WHERE parent_id IN (:parentIds) AND type = $TYPE_EVENT") + @Query("SELECT id FROM events WHERE parent_id IN (:parentIds)") fun getEventIdsWithParentIds(parentIds: List): List @Query("SELECT id FROM events WHERE source = :source AND import_id != \"\" AND type = $TYPE_EVENT")