Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in PR migration check (go-gitea#7368)
  • Loading branch information
mrsdizzie authored and jeffliu27 committed Jul 18, 2019
1 parent 465c507 commit 4929797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/migrate.go
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 4929797

Please sign in to comment.