aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v71.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v71.go')
-rw-r--r--models/migrations/v71.go2
1 files changed, 1 insertions, 1 deletions
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 {