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}")