Automation and Shopify library updates

This commit is contained in:
2022-10-30 22:12:25 -04:00
parent 48844127d7
commit b259b77967
21 changed files with 172 additions and 200 deletions

View File

@@ -13,6 +13,7 @@ using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
namespace PartSource.Automation.Jobs
@@ -32,7 +33,7 @@ namespace PartSource.Automation.Jobs
_vehicleService = vehicleService;
}
public async Task Run()
public async Task Run(CancellationToken token, params string[] arguments)
{
IDictionary<string, object> parameters = new Dictionary<string, object>
{
@@ -131,7 +132,7 @@ namespace PartSource.Automation.Jobs
Namespace = "fitment",
Key = "note_text",
Value = json,
ValueType = "json_string",
Type = "json",
OwnerResource = "product",
OwnerId = product.Id
};
@@ -204,7 +205,7 @@ namespace PartSource.Automation.Jobs
Namespace = "position",
Key = key,
Value = json,
ValueType = "json_string",
Type = "json",
OwnerResource = "product",
OwnerId = product.Id
};