the route to create a dump must return a 202

This commit is contained in:
tamo 2021-05-11 17:34:34 +02:00
parent c30b32e173
commit 6d837e3e07
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -17,7 +17,7 @@ async fn create_dump(
) -> Result<HttpResponse, ResponseError> { ) -> Result<HttpResponse, ResponseError> {
let res = data.create_dump().await?; let res = data.create_dump().await?;
Ok(HttpResponse::Ok().json(res)) Ok(HttpResponse::Accepted().json(res))
} }
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]