Skip to content

Commit

Permalink
Disable destination-based searches for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Feb 8, 2024
1 parent ff41ea6 commit 554558d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/features/messages/queries/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ export function buildMessageQuery(
return { query, variables };
}

// TODO removing destination-based or clauses for now due to DB load
// Queries will need to be restructured into multiple requests
// https://github.com/hyperlane-xyz/hyperlane-explorer/issues/59
// {destination_tx_hash: {_eq: $search}},
// {destination_tx_sender: {_eq: $search}},
const searchWhereClause = `
{_or: [
{msg_id: {_eq: $search}},
{sender: {_eq: $search}},
{recipient: {_eq: $search}},
{origin_tx_hash: {_eq: $search}},
{origin_tx_sender: {_eq: $search}},
{destination_tx_hash: {_eq: $search}},
{destination_tx_sender: {_eq: $search}},
]}
`;

Expand Down

0 comments on commit 554558d

Please sign in to comment.