From efb1a380da0c8b4d221ec599d45d110aed66a69b Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 24 Oct 2018 08:55:36 -0400 Subject: [PATCH] Update the comment routes --- src/redux/preview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redux/preview.js b/src/redux/preview.js index 2827cf58a..5492b51d3 100644 --- a/src/redux/preview.js +++ b/src/redux/preview.js @@ -379,7 +379,7 @@ module.exports.getFavedStatus = (id, username, token) => (dispatch => { module.exports.getTopLevelComments = (id, offset, isAdmin, token) => (dispatch => { dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING)); api({ - uri: `${isAdmin ? '/admin' : ''}/comments/project/${id}`, + uri: `${isAdmin ? '/admin' : ''}/projects/${id}/comments`, authentication: isAdmin ? token : null, params: {offset: offset || 0} }, (err, body) => { @@ -404,7 +404,7 @@ module.exports.getReplies = (projectId, commentIds, isAdmin, token) => (dispatch const fetchedReplies = {}; async.eachLimit(commentIds, 10, (parentId, callback) => { api({ - uri: `${isAdmin ? '/admin' : ''}/comments/project/${projectId}/${parentId}`, + uri: `${isAdmin ? '/admin' : ''}/projects/${projectId}/comments/${parentId}/replies`, authentication: isAdmin ? token : null }, (err, body) => { if (err) {