mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
parent
64995bae0f
commit
b46c279587
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue