mirror of https://github.com/01-edu/public.git
Christopher Fremond
3 years ago
committed by
GitHub
1 changed files with 2 additions and 5 deletions
@ -1,7 +1,4 @@ |
|||||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||||
|
|
||||||
echo test |
response=$(curl -s "https://$DOMAIN/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{login:{_eq:\"'$USERNAME'\"}}){id}}"}' | jq '.data.user[0].id') |
||||||
echo $DOMAIN |
echo $response |
||||||
echo $USERNAME |
|
||||||
|
|
||||||
curl -s "https://$DOMAIN/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{login:{_eq:\"'$USERNAME'\"}}){id}}"}' | jq '.data.user[0].id' |
|
||||||
|
Loading…
Reference in new issue