Browse Source

update v71.go to resolve #5595 (#5613)

tags/v1.21.12.1
Daniel Wolf Lunny Xiao 7 years ago
parent
commit
b46c279587
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/migrations/v71.go

+ 1
- 1
models/migrations/v71.go View File

@@ -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 {


Loading…
Cancel
Save