Skip to content

Commit

Permalink
Update params
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgwatson committed Nov 30, 2022
1 parent 4f8abaf commit 92721f8
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 @@ -41,7 +41,7 @@ module.exports = bookshelf.Model.extend({
return Frontend.Route.post(this.get('object_id'), group, isPublic)
case FlaggedItem.Type.COMMENT:
const comment = await this.getObject()
return Frontend.Route.comment(comment, group, isPublic)
return Frontend.Route.comment({ comment, group })
case FlaggedItem.Type.MEMBER:
return Frontend.Route.profile(this.get('object_id'))
default:
Expand Down

0 comments on commit 92721f8

Please sign in to comment.