Skip to content

Commit 4929797

Browse files
mrsdizziejeffliu27
authored andcommitted
Fix typo in PR migration check (go-gitea#7368)
1 parent 465c507 commit 4929797

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)