From bd25259de3c6a71e3edba6155bf919d9576b6daf Mon Sep 17 00:00:00 2001 From: Manuel Carrer Date: Tue, 11 Jun 2024 16:21:54 +0200 Subject: [PATCH] loc needs to be an Option --- api/src/latest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/latest.rs b/api/src/latest.rs index b1e5c73d..48ccfda7 100644 --- a/api/src/latest.rs +++ b/api/src/latest.rs @@ -7,7 +7,7 @@ pub struct LatestElem { value: f32, timestamp: DateTime, station_id: i32, - loc: Location, + loc: Option, } pub async fn get_latest(