Update comment

[MAILPOET-4883]
This commit is contained in:
David Remer
2023-01-26 08:37:20 +02:00
committed by Aschepikov
parent 95ec3d2fb9
commit 9e62501c30

View File

@@ -92,7 +92,7 @@ class AutomatedLatestContent extends APIEndpoint {
public function getTransformedPosts(array $data = []): SuccessResponse {
$posts = $this->getPermittedPosts($this->ALC->getPosts(new BlockPostQuery([
'args' => $data,
// If the request is for Posts block then we are fetching data for a static block
// If the request is for Posts or Products block then we are fetching data for a static block
'dynamic' => !(isset($data['type']) && in_array($data['type'], ["posts", "products"])),
]
)));