Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu-YT committed Jun 26, 2019
1 parent 7f57da9 commit 19aeaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comment/pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (b *basicCommentService) DeleteComment(ctx context.Context, taskId string,
}

comment := &model.Comment{}
_, err = b.Engine().Where("id=?", cid).Delete(comment)
_, err = b.Engine().Where("id=?", cId).Delete(comment)
if err != nil {
return false, err.Error(), ""
}
Expand Down

0 comments on commit 19aeaa1

Please sign in to comment.