mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 09:41:11 -05:00
parent
307ee2c044
commit
a1cec4141e
1 changed files with 2 additions and 2 deletions
|
@ -334,9 +334,9 @@ func DismissApprovalReviews(ctx context.Context, doer *user_model.User, pull *is
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return db.WithTx(ctx, func(subCtx context.Context) error {
|
return db.WithTx(ctx, func(ctx context.Context) error {
|
||||||
for _, review := range reviews {
|
for _, review := range reviews {
|
||||||
if err := issues_model.DismissReview(subCtx, review, true); err != nil {
|
if err := issues_model.DismissReview(ctx, review, true); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue