diff --git a/engine/src/main/java/com/google/android/fhir/FhirEngine.kt b/engine/src/main/java/com/google/android/fhir/FhirEngine.kt index a44c2c56c7..1046c3aa50 100644 --- a/engine/src/main/java/com/google/android/fhir/FhirEngine.kt +++ b/engine/src/main/java/com/google/android/fhir/FhirEngine.kt @@ -96,7 +96,7 @@ interface FhirEngine { * an empty list. */ suspend fun getLocalChanges(type: ResourceType, id: String): List - suspend fun getUnsyncedLocalChanges(): List + suspend fun getUnsyncedLocalChanges(): List /** * Purges a resource from the database based on resource type and id without any deletion of data * from the server. diff --git a/engine/src/main/java/com/google/android/fhir/impl/FhirEngineImpl.kt b/engine/src/main/java/com/google/android/fhir/impl/FhirEngineImpl.kt index 3b08ac8c9c..5567e3f5d8 100644 --- a/engine/src/main/java/com/google/android/fhir/impl/FhirEngineImpl.kt +++ b/engine/src/main/java/com/google/android/fhir/impl/FhirEngineImpl.kt @@ -79,8 +79,7 @@ internal class FhirEngineImpl(private val database: Database, private val contex return database.getLocalChanges(type, id) } // FhirEngineImpl.kt - override suspend fun getUnsyncedLocalChanges(): List = - database.getAllLocalChanges() + override suspend fun getUnsyncedLocalChanges(): List = database.getAllLocalChanges() override suspend fun purge(type: ResourceType, id: String, forcePurge: Boolean) { database.purge(type, id, forcePurge)