summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorDaniel Wolf <1461334+nephatrine@users.noreply.github.com>2018-12-31 08:23:03 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2018-12-31 21:23:03 +0800
commitb46c2795877c721f738472073ae5b03ecceb6c0a (patch)
treee3b3857b2612ab391659f884b405e30c67ba55d6 /models
parent64995bae0f88602ec652374c80df44753fd2e544 (diff)
downloadgitea-b46c2795877c721f738472073ae5b03ecceb6c0a.tar.gz
gitea-b46c2795877c721f738472073ae5b03ecceb6c0a.zip
update v71.go to resolve #5595 (#5613)
Diffstat (limited to 'models')
-rw-r--r--models/migrations/v71.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v71.go b/models/migrations/v71.go
index c725908bd5..8594460370 100644
--- a/models/migrations/v71.go
+++ b/models/migrations/v71.go
@@ -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 {