Removed empty clause
This commit is contained in:
parent
c42e1bd2f5
commit
6cd758faa0
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ func (r *searchableRepository) doSearch(table string, q string, offset, size int
|
|||
if len(q) <= 2 {
|
||||
return nil
|
||||
}
|
||||
sq := squirrel.Select("*").From(table).OrderBy()
|
||||
sq := squirrel.Select("*").From(table)
|
||||
sq = sq.Limit(uint64(size)).Offset(uint64(offset))
|
||||
if len(orderBys) > 0 {
|
||||
sq = sq.OrderBy(orderBys...)
|
||||
|
|
|
|||
Loading…
Reference in a new issue