Prettyfiy Code.

This commit is contained in:
Patrick Fic
2021-05-26 10:39:18 -07:00
parent 19270d681b
commit ce43aa8233

View File

@@ -27,7 +27,7 @@ namespace BodyshopPartner.Utils
using (var g = Utils.GraphQL.CreateGQLClient())
{
logger.Trace("Firing a GQL Query!");
logger.Trace("Firing GQL Query: {0} {1}", r.Query.ToString(), r.Variables);
logger.Trace("Firing GQL Query: {0} {1}", r.Query.ToString(), r.Variables);
var graphQLResponse = await g.SendQueryAsync<dynamic>(r);
if (graphQLResponse.Errors == null)
{
@@ -49,7 +49,9 @@ namespace BodyshopPartner.Utils
};
exceptionString = exceptionString + x + ";";
});
if (jwtExpired && !lastTry) { await Utils.Auth.Refresh();
if (jwtExpired && !lastTry)
{
await Utils.Auth.Refresh();
return (ExecuteQuery(r, true));
}
else
@@ -57,7 +59,7 @@ namespace BodyshopPartner.Utils
logger.Error("---------------------");
throw new Exception(exceptionString);
}
}
}
}