Skip to content

Commit 7166629

Browse files
mrsdizzietechknowlogick
authored andcommitted
Fix typo in PR migration check (#7368)
1 parent 89aa08d commit 7166629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/migrations/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts
205205

206206
if opts.PullRequests {
207207
log.Trace("migrating pull requests and comments")
208-
var prBatchSize = models.MaxBatchInsertSize("pullrequest")
208+
var prBatchSize = uploader.MaxBatchInsertSize("pullrequest")
209209
for i := 1; ; i++ {
210210
prs, err := downloader.GetPullRequests(i, prBatchSize)
211211
if err != nil {

0 commit comments

Comments
 (0)