Delete child tasks when parent task is deleted

This commit is contained in:
Naveen 2023-06-16 00:07:18 +05:30
parent dbfa1880b7
commit 5ca7a67d61
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ interface EventsDao {
@Query("SELECT id FROM events WHERE event_type IN (:eventTypeIds) AND type = $TYPE_EVENT")
fun getEventIdsByEventType(eventTypeIds: List<Long>): List<Long>
@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<Long>): List<Long>
@Query("SELECT id FROM events WHERE source = :source AND import_id != \"\" AND type = $TYPE_EVENT")