Why is it not possible to unpublish blog articles?
I found this weird bug in the Lightspeed API.
When I do the following:
$api->blogsArticles->update($article_id, [ "isPublished" => true, "publishedAt" => $publish_date ]);
It just works like expected. But when I want to do the opposite:
$api->blogsArticles->update($article_id, [ "isPublished" => false, "publishedAt" => null // With or without the publishedAt doesn't make any difference ]);
the blogpost just stays visible in the Backoffice and the storefront.
How can I solve this?
Hidde Schuurman | Backend & App Developer bij InStijl Media | Gold Partner Lightspeed
1 · Share on Google+