Skip to content

Commit

Permalink
Merge pull request #686 from near/fix/access-keys-filters
Browse files Browse the repository at this point in the history
Fix filters on findAccountsByPublicKey endpoint to QueryAPI
  • Loading branch information
eduohe authored Apr 26, 2024
2 parents bdfe306 + e412cbf commit e849de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const findAccountsByPublicKey = async (ctx) => {
query: `
query access_keys_v1_by_public_key {
dataplatform_near_access_keys_v1_access_keys_v1(
where: {public_key: {_eq: "${publicKey}"}}
where: {public_key: {_eq: "${publicKey}"}, account_deleted_by_receipt_id: {_is_null: true}, deleted_by_receipt_id: {_is_null: true}}
) {
account_id
}
Expand Down

0 comments on commit e849de9

Please sign in to comment.