swellstores / swell-php

Swell API library for PHP
MIT License
8 stars 3 forks source link

Fix return type in truncate_index() #4

Closed logeshswell closed 1 year ago

logeshswell commented 1 year ago

https://app.asana.com/0/1202306318068147/1204960655160307/f

Description

Images are broken in swell-hosted storefront.

truncate_index() return type is updated wrongly as bool instead of void. It causes the caching fails and images are throwing 500 error.

Error reference: App Exception: Return value of Swell\Cache::truncate_index() must be of the type bool, null returned in /schema/app/core/lib/schema-php-client/lib/Cache.php on line 274 (code: 0)