Skip to content

Commit

Permalink
final minor tweak to REST API for message-by-id
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-ant committed Sep 23, 2024
1 parent 783ba90 commit a9f6c87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions services/user/Chainmail/service/src/event_query_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ pub fn serve_rest_api(request: &HttpRequest) -> Option<HttpReply> {
let mq: HttpRequest;
// handle id param requests (for specific message)
if params.contains_key("id") {
where_clause = format!(
"WHERE CONCAT(sent.receiver, sent.rowid) = {}",
params.get("id")?
);
where_clause = format!("WHERE CONCAT(receiver, rowid) = {}", params.get("id")?);

mq = make_query(
request,
Expand Down

0 comments on commit a9f6c87

Please sign in to comment.