remove duplicate render of journal

This commit is contained in:
zhangxunhui 2023-02-01 14:45:04 +08:00
parent aabf1ee50f
commit 3c18d1ee9b
1 changed files with 0 additions and 2 deletions

View File

@ -55,8 +55,6 @@ class JournalsController < ApplicationController
if success_blockchain == false
normal_status(-1, "评论失败")
raise ActiveRecord::Rollback
else
render json: {status: 0, message: "评论成功", id: journal.id}
end
render :json => { status: 0, message: "评论成功", id: journal.id}