Fixed migration query
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
parent
9141482afd
commit
613f2b5bcb
|
|
@ -34,7 +34,7 @@ func reformatAndRemoveIncorrectTopics(x *xorm.Engine) (err error) {
|
|||
log.Info("Validating existed topics...")
|
||||
for start := 0; ; start += batchSize {
|
||||
topics = topics[:0]
|
||||
if err := x.Asc("id").Limit(batchSize, start).Find(&topics); err != nil {
|
||||
if err := sess.Asc("id").Limit(batchSize, start).Find(&topics); err != nil {
|
||||
return err
|
||||
}
|
||||
if len(topics) == 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user