Compare commits
2 commits
02077c04a5
...
7d5852efdd
Author | SHA1 | Date | |
---|---|---|---|
7d5852efdd | |||
cd2b0558ad |
3 changed files with 3 additions and 14 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -278,7 +278,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
|||
|
||||
[[package]]
|
||||
name = "kosyncrs"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"redis",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "kosyncrs"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
13
src/main.rs
13
src/main.rs
|
@ -173,18 +173,7 @@ async fn get_progress(
|
|||
.unwrap_or_default();
|
||||
|
||||
if values.is_empty() {
|
||||
let res = GetProgress {
|
||||
percentage: 0.0f32,
|
||||
progress: String::new(),
|
||||
device: String::new(),
|
||||
device_id: String::new(),
|
||||
timestamp: 0,
|
||||
document,
|
||||
};
|
||||
return (
|
||||
StatusCode::OK,
|
||||
Json(json!({})),
|
||||
);
|
||||
return (StatusCode::OK, Json(json!({})));
|
||||
}
|
||||
|
||||
let res = GetProgress {
|
||||
|
|
Loading…
Reference in a new issue