Skip to content

Commit 0ebd534

Browse files
author
Emre Sokullu
committed
getPendingComments query fix
1 parent 970ca7e commit 0ebd534

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/GraphJS/Controllers/AdministrationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ protected function requireAdministrativeRights(Request $request, Response $respo
6464
protected function _getPendingComments(Kernel $kernel): array
6565
{
6666
$pending_comments = [];
67-
$res = $kernel->index()->query("MATCH (a:user)-[e:comment {Pending: true}]-(n:page) RETURN a.udid AS author_id, a.Email AS author_email, n.udid AS page_id, e.udid AS comment_id, n.Url AS page_url, n.Title AS page_title, e.Content AS comment");
68-
//$res = $this->kernel->index()->query("MATCH (a:user)-[e:comment {Pending: \"1\"}]->(n:page) RETURN a.udid AS author_id, a.Email AS author_email, n.udid AS page_id, e.udid AS comment_id, n.Url AS page_url, n.Title AS page_title, e.Content AS comment");
67+
//$res = $kernel->index()->query("MATCH (a:user)-[e:comment {Pending: true}]-(n:page) RETURN a.udid AS author_id, a.Email AS author_email, n.udid AS page_id, e.udid AS comment_id, n.Url AS page_url, n.Title AS page_title, e.Content AS comment");
68+
$res = $kernel->index()->query("MATCH (a:user)-[e:comment {Pending: \"1\"}]->(n:page) RETURN a.udid AS author_id, a.Email AS author_email, n.udid AS page_id, e.udid AS comment_id, n.Url AS page_url, n.Title AS page_title, e.Content AS comment");
6969
$array = $res->results();
7070
foreach($array as $a) {
7171
$pending_comments[] = [

0 commit comments

Comments
 (0)