Skip to content

Commit

Permalink
Fix typo in PR migration check (#7368)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsdizzie authored and techknowlogick committed Jul 6, 2019
1 parent 89aa08d commit 7166629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7166629

Please sign in to comment.