Chore(deps): Bump xorm.io/xorm from 0.8.1 to 0.8.2 (#30773)
* Chore(deps): Bump xorm.io/xorm from 0.8.1 to 0.8.2 Bumps xorm.io/xorm from 0.8.1 to 0.8.2. Signed-off-by: dependabot[bot] <support@github.com> * Fix limit for snapshots * Fix limit for org and users Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
co-authored by
Marcus Efraimsson
parent
dde11215e9
commit
4f918e37f4
@@ -39,7 +39,10 @@ func SearchOrgs(query *models.SearchOrgsQuery) error {
|
||||
sess.In("id", query.Ids)
|
||||
}
|
||||
|
||||
sess.Limit(query.Limit, query.Limit*query.Page)
|
||||
if query.Limit > 0 {
|
||||
sess.Limit(query.Limit, query.Limit*query.Page)
|
||||
}
|
||||
|
||||
sess.Cols("id", "name")
|
||||
err := sess.Find(&query.Result)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user