From 9b4d9b788b1715c7fc662596ceade69e2862ef8a Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 30 Oct 2023 13:21:17 +0100 Subject: [PATCH] NSCv3: fix loading v1 records on full sync --- .../app/aaps/core/nssdk/networking/NightscoutRemoteService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nssdk/src/main/kotlin/app/aaps/core/nssdk/networking/NightscoutRemoteService.kt b/core/nssdk/src/main/kotlin/app/aaps/core/nssdk/networking/NightscoutRemoteService.kt index 806ce6573b..2fc3436528 100644 --- a/core/nssdk/src/main/kotlin/app/aaps/core/nssdk/networking/NightscoutRemoteService.kt +++ b/core/nssdk/src/main/kotlin/app/aaps/core/nssdk/networking/NightscoutRemoteService.kt @@ -56,7 +56,7 @@ internal interface NightscoutRemoteService { @DELETE("v3/entries/{identifier}") suspend fun deleteEntry(@Path("identifier") identifier: String): Response> - @GET("v3/treatments?sort=date") + @GET("v3/treatments?sort=created_at") suspend fun getTreatmentsNewerThan(@Query(value = "created_at\$gt", encoded = true) createdAt: String, @Query("limit") limit: Int): Response>> @GET("v3/treatments/history/{from}")