Some things broke
This commit is contained in:
@@ -18,13 +18,13 @@ using Ratermania.Shopify.Resources;
|
|||||||
|
|
||||||
namespace PartSource.Automation.Jobs.POC
|
namespace PartSource.Automation.Jobs.POC
|
||||||
{
|
{
|
||||||
public class GetImageUrls : IAutomationJob
|
public class ImageList : IAutomationJob
|
||||||
{
|
{
|
||||||
private readonly NexpartService _nexpartService;
|
private readonly NexpartService _nexpartService;
|
||||||
private readonly PartSourceContext _partSourceContext;
|
private readonly PartSourceContext _partSourceContext;
|
||||||
private readonly FitmentContext _fitmentContext;
|
private readonly FitmentContext _fitmentContext;
|
||||||
|
|
||||||
public GetImageUrls(NexpartService nexpartService, PartSourceContext partSourceContext, FitmentContext fitmentContext)
|
public ImageList(NexpartService nexpartService, PartSourceContext partSourceContext, FitmentContext fitmentContext)
|
||||||
{
|
{
|
||||||
_nexpartService = nexpartService;
|
_nexpartService = nexpartService;
|
||||||
_partSourceContext = partSourceContext;
|
_partSourceContext = partSourceContext;
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace PartSource.Automation.Jobs
|
|||||||
? string.Empty
|
? string.Empty
|
||||||
: product.BodyHtml.Substring(0, product.BodyHtml.IndexOf("</ul>") + "</ul>".Length);
|
: product.BodyHtml.Substring(0, product.BodyHtml.IndexOf("</ul>") + "</ul>".Length);
|
||||||
|
|
||||||
IList<Vehicle> vehicles = _vehicleFitmentService.GetVehiclesForPart(importData.PartNumber, importData.LineCode);
|
IList<Vehicle> vehicles = await _vehicleFitmentService.GetVehiclesForPart(importData.PartNumber, importData.LineCode);
|
||||||
IList<int> vehicleIdFitment = _vehicleFitmentService.GetVehicleIdFitment(vehicles);
|
IList<int> vehicleIdFitment = _vehicleFitmentService.GetVehicleIdFitment(vehicles);
|
||||||
|
|
||||||
if (!vehicleIdFitment.Any())
|
if (!vehicleIdFitment.Any())
|
||||||
|
|||||||
Reference in New Issue
Block a user