update_progress seems to work now
This commit is contained in:
parent
c870aa8c93
commit
2fea6062f5
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ pub struct User {
|
|||
pub struct Progress {
|
||||
document: String,
|
||||
progress: String,
|
||||
percentage: String,
|
||||
percentage: f32,
|
||||
device: String,
|
||||
device_id: String,
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ async fn update_progress(headers: HeaderMap, Json(payload): Json<Progress>) -> S
|
|||
.hset_multiple(
|
||||
&doc_key,
|
||||
&[
|
||||
("percentage", &payload.percentage),
|
||||
("percentage", &payload.percentage.to_string()),
|
||||
("progress", &payload.progress),
|
||||
("device", &payload.device),
|
||||
("device_id", &payload.device_id),
|
||||
|
|
Loading…
Reference in a new issue