Fix typo in PR migration check (#7368)

tokarchuk/v1.17
mrsdizzie 5 years ago committed by techknowlogick
parent 89aa08d372
commit 7166629d9c
  1. 2
      modules/migrations/migrate.go

@ -205,7 +205,7 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts
if opts.PullRequests {
log.Trace("migrating pull requests and comments")
var prBatchSize = models.MaxBatchInsertSize("pullrequest")
var prBatchSize = uploader.MaxBatchInsertSize("pullrequest")
for i := 1; ; i++ {
prs, err := downloader.GetPullRequests(i, prBatchSize)
if err != nil {

Loading…
Cancel
Save