Fix already done trade detecation and e-mail address in deadswitch call

This commit is contained in:
2024-10-01 16:28:14 -05:00
parent b8b99a8a9e
commit bbb9d5dce6
5 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ if [[ ${ageInSec} -gt 600 ]]; then
-d "grant_type=refresh_token&refresh_token=$(<refresh_token.dat)" > temp/accessTokenReqResp.$$.json
jq -e -r .access_token temp/accessTokenReqResp.$$.json > access_token.dat
if [[ $? -ne 0 ]]; then
curl -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=trade.schwab.error.getNewAccessToken&secs=1&email=joe@kawomi.com"
curl -s -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=trade.schwab.error.getNewAccessToken&secs=1&email=joerg.tretter@gmail.com"
throw "ERROR: GETTING THE ACCESS TOKEN FAILED! $(<temp/accessTokenReqResp.$$.json)" err
fi
fi