Updated graphql package and changed insert job query to upsert BOD-198.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user