Skip to content

Commit

Permalink
Update android/engine/src/main/java/org/smartregister/fhircore/engine…
Browse files Browse the repository at this point in the history
…/task/FhirResourceExpireWorker.kt

Co-authored-by: Elly Kitoto <junkmailstoelly@gmail.com>
  • Loading branch information
dubdabasoduba and ellykits authored Sep 12, 2024
1 parent 154ad34 commit 4f41986
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ constructor(

override suspend fun doWork(): Result {
return withContext(dispatcherProvider.io()) {
fhirResourceUtil.expireOverdueTasks()
fhirResourceUtil.closeResourcesRelatedToCompletedServiceRequests()
fhirResourceUtil.closeCustomResources()
fhirResourceUtil.run {
expireOverdueTasks()
closeResourcesRelatedToCompletedServiceRequests()
closeCustomResources()
}
Result.success()
}
}
Expand Down

0 comments on commit 4f41986

Please sign in to comment.