Explorar el Código

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

tags/v1.7.0-dev
Daniel Wolf hace 5 años
padre
commit
b46c279587
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      models/migrations/v71.go

+ 1
- 1
models/migrations/v71.go Ver fichero

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

Cargando…
Cancelar
Guardar