Prettyfiy Code.
This commit is contained in:
@@ -27,7 +27,7 @@ namespace BodyshopPartner.Utils
|
|||||||
using (var g = Utils.GraphQL.CreateGQLClient())
|
using (var g = Utils.GraphQL.CreateGQLClient())
|
||||||
{
|
{
|
||||||
logger.Trace("Firing a GQL Query!");
|
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);
|
var graphQLResponse = await g.SendQueryAsync<dynamic>(r);
|
||||||
if (graphQLResponse.Errors == null)
|
if (graphQLResponse.Errors == null)
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,9 @@ namespace BodyshopPartner.Utils
|
|||||||
};
|
};
|
||||||
exceptionString = exceptionString + x + ";";
|
exceptionString = exceptionString + x + ";";
|
||||||
});
|
});
|
||||||
if (jwtExpired && !lastTry) { await Utils.Auth.Refresh();
|
if (jwtExpired && !lastTry)
|
||||||
|
{
|
||||||
|
await Utils.Auth.Refresh();
|
||||||
return (ExecuteQuery(r, true));
|
return (ExecuteQuery(r, true));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -57,7 +59,7 @@ namespace BodyshopPartner.Utils
|
|||||||
logger.Error("---------------------");
|
logger.Error("---------------------");
|
||||||
throw new Exception(exceptionString);
|
throw new Exception(exceptionString);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user