Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/handlers/http/correlation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub async fn post(req: HttpRequest, body: Bytes) -> Result<impl Responder, Corre
// Save to memory
CORRELATIONS.update(&correlation).await?;

Ok(format!("Saved correlation with ID- {}", correlation.id))
Ok(web::Json(correlation))
}

pub async fn modify(req: HttpRequest, body: Bytes) -> Result<impl Responder, CorrelationError> {
Expand Down Expand Up @@ -117,7 +117,7 @@ pub async fn modify(req: HttpRequest, body: Bytes) -> Result<impl Responder, Cor
// Save to memory
CORRELATIONS.update(&correlation).await?;

Ok(format!("Modified correlation with ID- {}", correlation.id))
Ok(web::Json(correlation))
}

pub async fn delete(req: HttpRequest) -> Result<impl Responder, CorrelationError> {
Expand Down
Loading