Updated graphql package and changed insert job query to upsert BOD-198.

This commit is contained in:
Patrick Fic
2020-08-20 14:35:31 -07:00
parent 32ec745c77
commit 8766026263
7 changed files with 66 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
using GraphQL.Common.Request;
using GraphQL;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,7 +11,7 @@ namespace BodyshopPartner.Utils.Queries
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public static async Task<bool> GetJobUuidByClmNo(string ClmNo)
public static async Task<bool> CheckSupplementByClaimNo(string ClmNo)
{
if (string.IsNullOrEmpty(ClmNo))
return false;
@@ -19,9 +19,9 @@ namespace BodyshopPartner.Utils.Queries
var r = new GraphQLRequest
{
Query = @"query QUERY_JOB_BY_CLM_NO($clm_no: String!) {
jobs(where: {clm_no: {_eq: $clm_no}}) {
id
}
jobs(where: {clm_no: {_eq: $clm_no}}) {
id
}
}",
Variables = new
{