Skip to content

Commit

Permalink
editoast: disable /search dry parameter in non-debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leovalais committed Aug 31, 2024
1 parent a780bf2 commit f169293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editoast/src/views/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ async fn search(
}

if cfg!(debug_assertions) && dry {
tracing::debug!("not running query");
let query = diesel::debug_query::<Pg, _>(&query).to_string();
return Ok(axum::response::Response::builder()
.status(StatusCode::OK)
Expand Down

0 comments on commit f169293

Please sign in to comment.