Merge branch 'master' into subscriptions

This commit is contained in:
Belén Curcio
2017-04-24 18:09:34 -03:00
committed by GitHub
8 changed files with 60 additions and 31 deletions
+2 -2
View File
@@ -186,9 +186,9 @@ const createPublicComment = (context, commentInput) => {
* @param {String} status the new status of the comment
*/
const setCommentStatus = ({loaders: {Comments}}, {id, status}) => {
const setCommentStatus = ({user, loaders: {Comments}}, {id, status}) => {
return CommentsService
.setStatus(id, status)
.pushStatus(id, status, user ? user.id : null)
.then((comment) => {
// If the loaders are present, clear the caches for these values because we