Skip to content

Commit

Permalink
Rename non-generic GraphService.SendAsync to GraphService.PostAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Dec 10, 2024
1 parent e22fa35 commit cc60155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShopifySharp/Services/Graph/GraphService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public virtual Task<object> SendAsync(string graphqlQuery, Type resultType, int?
return SendAsync(new GraphRequest { query = graphqlQuery }, resultType, graphqlQueryCost, cancellationToken);

Check failure on line 88 in ShopifySharp/Services/Graph/GraphService.cs

View workflow job for this annotation

GitHub Actions / Build

Argument 1: cannot convert from 'ShopifySharp.GraphRequest' to 'string'

Check failure on line 88 in ShopifySharp/Services/Graph/GraphService.cs

View workflow job for this annotation

GitHub Actions / Build

Argument 1: cannot convert from 'ShopifySharp.GraphRequest' to 'string'
}

public virtual async Task<object> SendAsync(GraphRequest request, Type resultType, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
public virtual async Task<object> PostAsync(GraphRequest request, Type resultType, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
{
var elt = await this.SendAsync(request, graphqlQueryCost, cancellationToken);
var ptyElt = elt.EnumerateObject().Single().Value;
Expand Down

0 comments on commit cc60155

Please sign in to comment.