Merge pull request #2488 from paulkaplan/change-comment-endpoint

Change the endpoint for loading single comments
This commit is contained in:
Ray Schamp 2018-12-14 14:27:28 -05:00 committed by GitHub
commit 8ea6a9782f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,7 +481,7 @@ module.exports.getTopLevelComments = (id, offset, isAdmin, token) => (dispatch =
module.exports.getCommentById = (projectId, commentId, isAdmin, token) => (dispatch => { module.exports.getCommentById = (projectId, commentId, isAdmin, token) => (dispatch => {
dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING)); dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING));
api({ api({
uri: `${isAdmin ? '/admin' : ''}/projects/comments/${commentId}`, uri: `${isAdmin ? '/admin' : ''}/projects/${projectId}/comments/${commentId}`,
authentication: isAdmin ? token : null authentication: isAdmin ? token : null
}, (err, body) => { }, (err, body) => {
if (err) { if (err) {