Added vehicle changes & updates.
This commit is contained in:
@@ -87,10 +87,13 @@ namespace BodyshopUploader.Utils
|
||||
private static async Task UpsertQueueItem(DTO_QueueItem item)
|
||||
{
|
||||
//Save the job to the DB.
|
||||
logger.Info("Should upsert the job graphqlly here. {0}", item.Job);
|
||||
|
||||
|
||||
item.Job.shopid = "52b7357c-0edd-4c95-85c3-dfdbcdfad9ac";
|
||||
item.Job.est_number = "lul?";
|
||||
item.Job.est_number = "123";
|
||||
item.Job.vehicle.data.shopid = "52b7357c-0edd-4c95-85c3-dfdbcdfad9ac";
|
||||
|
||||
logger.Info("Should upsert the job graphqlly here. {0}", item.Job);
|
||||
|
||||
var r = new GraphQLRequest
|
||||
{
|
||||
@@ -112,8 +115,12 @@ namespace BodyshopUploader.Utils
|
||||
using (var g = Utils.GraphQL.CreateGQLClient())
|
||||
{
|
||||
var graphQLResponse = await g.PostAsync(r);
|
||||
logger.Info(graphQLResponse.Data.jobs);
|
||||
if(graphQLResponse.Errors == null)
|
||||
{
|
||||
logger.Trace("Job posted succesfully.");
|
||||
}
|
||||
}
|
||||
_jobs.Dequeue();
|
||||
|
||||
App.Current.Dispatcher.Invoke(() =>
|
||||
{
|
||||
@@ -125,7 +132,7 @@ namespace BodyshopUploader.Utils
|
||||
});
|
||||
});
|
||||
|
||||
_jobs.Dequeue();
|
||||
|
||||
}
|
||||
|
||||
private static void MoveFile(string FullPath)
|
||||
|
||||
Reference in New Issue
Block a user