Skip to content

Commit 5c15a5c

Browse files
authored
Add missing header X-RESYNC-TOKEN (#5648)
1 parent 06b71ba commit 5c15a5c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/src/main/java/org/simple/clinic/cvdrisk/sync/CVDRiskSyncApi.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
44
import retrofit2.Call
55
import retrofit2.http.Body
66
import retrofit2.http.GET
7+
import retrofit2.http.Headers
78
import retrofit2.http.POST
89
import retrofit2.http.Query
910

@@ -14,6 +15,7 @@ interface CVDRiskSyncApi {
1415
@Body body: CVDRiskPushRequest
1516
): Call<DataPushResponse>
1617

18+
@Headers(value = ["X-RESYNC-TOKEN: 1"])
1719
@GET("v4/cvd_risks/sync")
1820
fun pull(
1921
@Query("limit") recordsToPull: Int,

app/src/main/java/org/simple/clinic/patientattribute/sync/PatientAttributeSyncApi.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
44
import retrofit2.Call
55
import retrofit2.http.Body
66
import retrofit2.http.GET
7+
import retrofit2.http.Headers
78
import retrofit2.http.POST
89
import retrofit2.http.Query
910

@@ -14,6 +15,7 @@ interface PatientAttributeSyncApi {
1415
@Body body: PatientAttributePushRequest
1516
): Call<DataPushResponse>
1617

18+
@Headers(value = ["X-RESYNC-TOKEN: 1"])
1719
@GET("v4/patient_attributes/sync")
1820
fun pull(
1921
@Query("limit") recordsToPull: Int,

0 commit comments

Comments
 (0)