File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Vuefront/Vuefront/ApiGraphql/resolver/blog Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments