Skip to content

Commit

Permalink
Add token_id parameter to the invalidation endpoint (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus authored Nov 22, 2022
1 parent d59871d commit 13fd1d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/metadata/custom_hasura_config/1_partner_role.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"filter": {
"_and": [
{ "contract": { "_eq": "X-Hasura-User-Id" } },
{ "token_id": { "_is_null": "false"} },
{ "status": { "_neq": 1 } },
{ "expired": { "_eq": "true" } }
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"args": {
"collection_name": "allowed-queries",
"query_name": "Invalidate token metadata",
"query": "mutation Invalidate($contract: String) {\n update_token_metadata(\n where: {\n contract: {_eq: $contract}, \n status: {_neq: \"1\"}, \n expired: {_eq: true}\n }, \n _set: {\n status: \"1\", \n retry_count: \"0\"\n }) {\n \taffected_rows\n }\n}"
"query": "mutation Invalidate($contract: String, $token_id: numeric = 0) {\n update_token_metadata(\n where: {\n contract: {_eq: $contract}, \n token_id: {_eq: $token_id}, \n status: {_neq: \"1\"}, \n expired: {_eq: true}\n }, \n _set: {\n status: \"1\", \n retry_count: \"0\"\n }) {\n \taffected_rows\n }\n}"
}
},
{
Expand Down

0 comments on commit 13fd1d6

Please sign in to comment.