Fix tests.

This commit is contained in:
gaba
2017-05-08 13:12:18 -07:00
parent cb09c50820
commit d7e72bb138
4 changed files with 32 additions and 40 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ const createComment = ({user, loaders: {Comments}, pubsub}, {body, asset_id, par
.then(async (comment) => {
if (user.hasRoles('ADMIN') || user.hasRoles('MODERATOR')) {
await CommentsService.addTag(comment.id, 'STAFF', user.id);
await CommentsService.addTag(comment.id, 'STAFF', user);
}
// If the loaders are present, clear the caches for these values because we
@@ -209,7 +209,7 @@ const setCommentStatus = ({user, loaders: {Comments}}, {id, status}) => {
* @param {String} tag name of the tag
*/
const addCommentTag = ({user, loaders: {Comments}}, {id, tag}) => {
return CommentsService.addTag(id, tag, user.id);
return CommentsService.addTag(id, tag, user);
};
/**