Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsprague committed Feb 27, 2023
1 parent 7b59050 commit de31895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/FlaggedItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = bookshelf.Model.extend({
const comment = await this.getObject()
return Frontend.Route.comment({ comment, groupSlug: group ? group.get('slug') : null })
case FlaggedItem.Type.MEMBER:
return Frontend.Route.profile(this.get('object_id'))
return Frontend.Route.profile(this.get('object_id'), group)
default:
throw new GraphQLYogaError('Unsupported type for Flagged Item', this.get('object_type'))
}
Expand Down

0 comments on commit de31895

Please sign in to comment.