Skip to content

Commit

Permalink
fix: cannot comments in new_application user page && bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Apr 3, 2024
1 parent 8d60e91 commit 26be339
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class CommentsController < ApplicationController
def create
@comment = Comment.create(create_or_update_params)
@comment = Comment.create!(create_or_update_params)

@commentable = @comment.commentable

Expand Down
2 changes: 1 addition & 1 deletion frontend/components/activityItems/NewActivityItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class NewActivityItem extends React.Component {
});
})
.post("/comments", {
commentable_id: this.state.preApplicationActivity.id,
commentable_id: this.state.preApplicationActivity.activity_application_id,
commentable_type: "ActivityApplication",
user_id: this.props.current_user.id,
content: content,
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/activityItems/RenewActivityItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class RenewActivityItem extends React.Component {
});
})
.post("/comments", {
commentable_id: this.state.preApplicationActivity.id,
commentable_id: this.state.preApplicationActivity.activity_application_id,
commentable_type: "ActivityApplication",
user_id: this.props.current_user.id,
content: content,
Expand Down
2 changes: 1 addition & 1 deletion lib/elvis/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Elvis
VERSION = "2.2.13"
VERSION = "2.2.14"
end

0 comments on commit 26be339

Please sign in to comment.