From fab0c7e74d9ef3c821869338d437480cee7d41e0 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 8 Feb 2017 12:39:35 -0300 Subject: [PATCH] Mod Queue Working --- .../src/graphql/queries/modQueueQuery.graphql | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/client/coral-admin/src/graphql/queries/modQueueQuery.graphql b/client/coral-admin/src/graphql/queries/modQueueQuery.graphql index fda130510..5d69f6324 100644 --- a/client/coral-admin/src/graphql/queries/modQueueQuery.graphql +++ b/client/coral-admin/src/graphql/queries/modQueueQuery.graphql @@ -1,21 +1,27 @@ #import "../fragments/commentView.graphql" query ($asset_id: ID!) { - premod: comments(query: { - statuses: [PREMOD], + all: comments(query: { + statuses: [ACCEPTED, REJECTED, PREMOD], asset_id: $asset_id }) { ...commentView } + premod: comments(query: { + statuses: [PREMOD], + asset_id: $asset_id + }) { + ...commentView + } flagged: comments(query: { - action_type: FLAG, - asset_id: $asset_id + action_type: FLAG, + asset_id: $asset_id }) { ...commentView } - all: comments(query: { - statuses: [ACCEPTED], - asset_id: $asset_id + rejected: comments(query: { + statuses: [REJECTED], + asset_id: $asset_id }) { ...commentView } @@ -25,10 +31,4 @@ query ($asset_id: ID!) { }) { ...commentView } - rejected: comments(query: { - statuses: [REJECTED], - asset_id: $asset_id - }) { - ...commentView - } }