From 7166629d9c2b71fe29a717a121bc080ba656cda2 Mon Sep 17 00:00:00 2001 From: mrsdizzie Date: Sat, 6 Jul 2019 16:32:15 -0400 Subject: [PATCH] Fix typo in PR migration check (#7368) --- modules/migrations/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/migrations/migrate.go b/modules/migrations/migrate.go index 5adf7f8050a..7fc7911f218 100644 --- a/modules/migrations/migrate.go +++ b/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 {