Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2023-01-09 10:42:38 +08:00
committed by GitHub
15 changed files with 150 additions and 81 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ func UpdateComment(ctx context.Context, c *issues_model.Comment, doer *user_mode
// DeleteComment deletes the comment
func DeleteComment(ctx context.Context, doer *user_model.User, comment *issues_model.Comment) error {
err := db.AutoTx(ctx, func(ctx context.Context) error {
err := db.WithTx(ctx, func(ctx context.Context) error {
return issues_model.DeleteComment(ctx, comment)
})
if err != nil {