From b46c2795877c721f738472073ae5b03ecceb6c0a Mon Sep 17 00:00:00 2001 From: Daniel Wolf <1461334+nephatrine@users.noreply.github.com> Date: Mon, 31 Dec 2018 08:23:03 -0500 Subject: [PATCH] update v71.go to resolve #5595 (#5613) --- models/migrations/v71.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/migrations/v71.go b/models/migrations/v71.go index c725908bd5..8594460370 100644 --- a/models/migrations/v71.go +++ b/models/migrations/v71.go @@ -44,7 +44,7 @@ func addScratchHash(x *xorm.Engine) error { const batchSize = 100 for start := 0; ; start += batchSize { tfas := make([]*TwoFactor, 0, batchSize) - if err := x.Limit(batchSize, start).Find(&tfas); err != nil { + if err := sess.Limit(batchSize, start).Find(&tfas); err != nil { return err } if len(tfas) == 0 {