mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix search
This commit is contained in:
@@ -323,9 +323,7 @@ func SearchResource(query string, page int) ([]model.ResourceView, int, error) {
|
|||||||
temp = temp1
|
temp = temp1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for id, createdAt := range temp {
|
resources = append(resources, temp...)
|
||||||
resources[id] = createdAt
|
|
||||||
}
|
|
||||||
|
|
||||||
if start >= len(resources) {
|
if start >= len(resources) {
|
||||||
return []model.ResourceView{}, 0, nil
|
return []model.ResourceView{}, 0, nil
|
||||||
|
Reference in New Issue
Block a user