fix updates pagination

This commit is contained in:
mbecker20
2023-01-04 22:41:48 +00:00
parent f6f94303a5
commit ac3d17ce82
2 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pub fn router() -> Router {
Query(value): Query<Value>| async move {
let offset = value
.get("offset")
.map(|v| v.as_u64().unwrap_or(0))
.map(|v| v.as_str().unwrap_or("0").parse().unwrap_or(0))
.unwrap_or(0);
let target = serde_json::from_str::<UpdateTarget>(&value.to_string()).ok();
let updates = state