Prettyfiy Code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user