File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ func searchHandler(query *Query) error {
44
44
IsStarred : query .IsStarred ,
45
45
OrgId : query .OrgId ,
46
46
DashboardIds : query .DashboardIds ,
47
- Limit : query .Limit ,
48
47
}
49
48
50
49
if err := bus .Dispatch (& dashQuery ); err != nil {
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ type FindPersistedDashboardsQuery struct {
42
42
UserId int64
43
43
IsStarred bool
44
44
DashboardIds []int
45
- Limit int
46
45
47
46
Result HitList
48
47
}
Original file line number Diff line number Diff line change @@ -123,11 +123,6 @@ type DashboardSearchProjection struct {
123
123
}
124
124
125
125
func SearchDashboards (query * search.FindPersistedDashboardsQuery ) error {
126
- limit := query .Limit
127
- if limit == 0 {
128
- limit = 1000
129
- }
130
-
131
126
var sql bytes.Buffer
132
127
params := make ([]interface {}, 0 )
133
128
@@ -170,8 +165,7 @@ func SearchDashboards(query *search.FindPersistedDashboardsQuery) error {
170
165
params = append (params , "%" + query .Title + "%" )
171
166
}
172
167
173
- sql .WriteString (fmt .Sprintf (" ORDER BY dashboard.title ASC LIMIT ?" ))
174
- params = append (params , limit )
168
+ sql .WriteString (fmt .Sprintf (" ORDER BY dashboard.title ASC LIMIT 1000" ))
175
169
176
170
var res []DashboardSearchProjection
177
171
You can’t perform that action at this time.
0 commit comments