diff options
Diffstat (limited to 'models/migrate.go')
-rw-r--r-- | models/migrate.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrate.go b/models/migrate.go index 82cacd4a75..9705d0ad04 100644 --- a/models/migrate.go +++ b/models/migrate.go @@ -128,8 +128,8 @@ func InsertIssueComments(comments []*issues_model.Comment) error { } // InsertPullRequests inserted pull requests -func InsertPullRequests(prs ...*issues_model.PullRequest) error { - ctx, committer, err := db.TxContext(db.DefaultContext) +func InsertPullRequests(ctx context.Context, prs ...*issues_model.PullRequest) error { + ctx, committer, err := db.TxContext(ctx) if err != nil { return err } |