From 61ff4995d03716f17c29375d7731d89e410d97b3 Mon Sep 17 00:00:00 2001 From: Elly Kitoto Date: Thu, 28 Nov 2024 12:19:03 +0300 Subject: [PATCH] Fix failing lint check Signed-off-by: Elly Kitoto --- .../quest/data/report/measure/MeasureReportRepository.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/quest/src/main/java/org/smartregister/fhircore/quest/data/report/measure/MeasureReportRepository.kt b/android/quest/src/main/java/org/smartregister/fhircore/quest/data/report/measure/MeasureReportRepository.kt index eb1b977ec2..badb6fd3ca 100644 --- a/android/quest/src/main/java/org/smartregister/fhircore/quest/data/report/measure/MeasureReportRepository.kt +++ b/android/quest/src/main/java/org/smartregister/fhircore/quest/data/report/measure/MeasureReportRepository.kt @@ -24,7 +24,6 @@ import com.google.android.fhir.knowledge.KnowledgeManager import com.google.android.fhir.search.search import com.google.android.fhir.workflow.FhirOperator import dagger.hilt.android.qualifiers.ApplicationContext -import javax.inject.Inject import kotlinx.coroutines.withContext import org.hl7.fhir.exceptions.FHIRException import org.hl7.fhir.r4.model.Group @@ -43,6 +42,7 @@ import org.smartregister.fhircore.engine.util.extension.asReference import org.smartregister.fhircore.engine.util.fhirpath.FhirPathDataExtractor import org.smartregister.fhircore.quest.ui.report.measure.MeasureReportViewModel import timber.log.Timber +import javax.inject.Inject class MeasureReportRepository @Inject @@ -196,7 +196,7 @@ constructor( val resource = searchResult.resource if (resource is Group && !resource.hasMember()) { resource.addMember(Group.GroupMemberComponent(resource.asReference())) - fhirEngine.update(resource) + addOrUpdate(resource = resource) } "${resource.resourceType.name}/${resource.logicalId}" }