feat: increase api limit

This commit is contained in:
əlemi 2024-12-03 20:37:38 +01:00
parent 7d0e1c4674
commit 9b75fbef43
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -81,7 +81,7 @@ async fn api_status_service(
Path(service): axum::extract::Path<String>,
Query(q): Query<ServiceStatusQuery>,
) -> ApiResult<Vec<(i64, Option<i64>)>> {
let limit = q.limit.unwrap_or(50).min(250);
let limit = q.limit.unwrap_or(50).min(300);
let sid = db.sid(&service, false).await?;
Ok(Json(db.get(sid, limit).await?))
}