Compare commits

..

2 commits

Author SHA1 Message Date
7d5852efdd Return empty value if nothing is found. 2023-09-26 21:55:28 +02:00
cd2b0558ad Version 1.0.0 2023-09-26 21:54:58 +02:00
3 changed files with 3 additions and 14 deletions

2
Cargo.lock generated
View file

@ -278,7 +278,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
[[package]] [[package]]
name = "kosyncrs" name = "kosyncrs"
version = "0.1.0" version = "1.0.0"
dependencies = [ dependencies = [
"axum", "axum",
"redis", "redis",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "kosyncrs" name = "kosyncrs"
version = "0.1.0" version = "1.0.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -173,18 +173,7 @@ async fn get_progress(
.unwrap_or_default(); .unwrap_or_default();
if values.is_empty() { if values.is_empty() {
let res = GetProgress { return (StatusCode::OK, Json(json!({})));
percentage: 0.0f32,
progress: String::new(),
device: String::new(),
device_id: String::new(),
timestamp: 0,
document,
};
return (
StatusCode::OK,
Json(json!({})),
);
} }
let res = GetProgress { let res = GetProgress {