From adb2dc2054a02f0ab0573667828d819ef4a2d027 Mon Sep 17 00:00:00 2001 From: Dan Zajdband Date: Mon, 7 Nov 2016 12:21:27 -0500 Subject: [PATCH] fix(coral-admin): updated queue endpoint --- client/coral-admin/package.json | 2 +- routes/api/queue/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/coral-admin/package.json b/client/coral-admin/package.json index 4165e14ce..ced6a3512 100644 --- a/client/coral-admin/package.json +++ b/client/coral-admin/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "build": "./node_modules/.bin/webpack --config webpack.config.js --watch", + "build": "./node_modules/.bin/webpack --config webpack.config.js", "start": "./node_modules/.bin/webpack-dev-server --config webpack.config.dev.js --inline --hot --content-base public --port 3142" }, "keywords": [], diff --git a/routes/api/queue/index.js b/routes/api/queue/index.js index bf5b8c480..ffaa5c1e1 100644 --- a/routes/api/queue/index.js +++ b/routes/api/queue/index.js @@ -3,13 +3,14 @@ const express = require('express'); const router = express.Router(); const defaultComment = { + _id: '23423423432aa', body: 'This is a comment!', name: 'John Doe', createdAt: Date.now() }; router.get('/', (req, res) => { - const status = req.query.type || 'pending'; + const status = req.query.type; res.json([Object.assign({}, defaultComment, {status})]); });