Added vehicle changes & updates.

This commit is contained in:
Patrick Fic
2020-01-17 20:08:21 -08:00
parent 6a92d21942
commit 73a2cb4fcb
5 changed files with 97 additions and 15 deletions

View File

@@ -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)