Skip to content

Commit f6bb470

Browse files
committed
Fix bug
1 parent ac95766 commit f6bb470

File tree

1 file changed

+6
-3
lines changed
  • Vuefront/Vuefront/ApiGraphql/resolver/blog

1 file changed

+6
-3
lines changed

Vuefront/Vuefront/ApiGraphql/resolver/blog/review.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function add($args)
4040
\Magefan\Blog\Model\Config\Source\AuthorType::CUSTOMER
4141
);
4242
} elseif ($this->getConfigValue(
43-
\Magefan\Blog\Helper\Config::GUEST_COMMENT,
44-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
43+
\Magefan\Blog\Helper\Config::GUEST_COMMENT,
44+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
4545
)) {
4646
$comment->setCustomerId(0)->setAuthorType(
4747
\Magefan\Blog\Model\Config\Source\AuthorType::GUEST
@@ -74,7 +74,10 @@ public function get($data)
7474
);
7575
}
7676

77-
return $comments;
77+
return array(
78+
'content'=> $comments,
79+
'totalElements'=> $count($comments)
80+
);
7881
}
7982

8083
public function getConfigValue($path)

0 commit comments

Comments
 (0)