We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64995ba commit b46c279Copy full SHA for b46c279
models/migrations/v71.go
@@ -44,7 +44,7 @@ func addScratchHash(x *xorm.Engine) error {
44
const batchSize = 100
45
for start := 0; ; start += batchSize {
46
tfas := make([]*TwoFactor, 0, batchSize)
47
- if err := x.Limit(batchSize, start).Find(&tfas); err != nil {
+ if err := sess.Limit(batchSize, start).Find(&tfas); err != nil {
48
return err
49
}
50
if len(tfas) == 0 {
0 commit comments