Skip to content

Commit 2d8d2ee

Browse files
committed
OMNI-1259 Use more specific ..ProductImage() calls instead of ..Resource() calls
1 parent a4ee9ca commit 2d8d2ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Bigcommerce/Api/Resources/ProductImage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ class ProductImage extends Resource
2424

2525
public function create()
2626
{
27-
return Client::createResource('/products/' . $this->fields->product_id . '/images', $this->getCreateFields());
27+
return Client::createProductImage($this->product_id, $this->getCreateFields());
2828
}
2929

3030
public function update()
3131
{
32-
return Client::updateResource('/products/' . $this->fields->product_id . '/images/' . $this->id, $this->getUpdateFields());
32+
return Client::updateProductImage($this->product_id, $this->id, $this->getUpdateFields());
3333
}
3434

3535
public function delete()
3636
{
37-
return Client::deleteResource('/products/' . $this->fields->product_id . '/images/' . $this->id);
37+
return Client::deleteProductImage($this->product_id, $this->id);
3838
}
3939
}

0 commit comments

Comments
 (0)