Skip to content

Commit b46c279

Browse files
nephatrinelunny
authored andcommitted
update v71.go to resolve #5595 (#5613)
1 parent 64995ba commit b46c279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v71.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func addScratchHash(x *xorm.Engine) error {
4444
const batchSize = 100
4545
for start := 0; ; start += batchSize {
4646
tfas := make([]*TwoFactor, 0, batchSize)
47-
if err := x.Limit(batchSize, start).Find(&tfas); err != nil {
47+
if err := sess.Limit(batchSize, start).Find(&tfas); err != nil {
4848
return err
4949
}
5050
if len(tfas) == 0 {

0 commit comments

Comments
 (0)