Update comment
[MAILPOET-4883]
This commit is contained in:
@@ -92,7 +92,7 @@ class AutomatedLatestContent extends APIEndpoint {
|
|||||||
public function getTransformedPosts(array $data = []): SuccessResponse {
|
public function getTransformedPosts(array $data = []): SuccessResponse {
|
||||||
$posts = $this->getPermittedPosts($this->ALC->getPosts(new BlockPostQuery([
|
$posts = $this->getPermittedPosts($this->ALC->getPosts(new BlockPostQuery([
|
||||||
'args' => $data,
|
'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"])),
|
'dynamic' => !(isset($data['type']) && in_array($data['type'], ["posts", "products"])),
|
||||||
]
|
]
|
||||||
)));
|
)));
|
||||||
|
Reference in New Issue
Block a user