fix random & search
This commit is contained in:
@@ -18,7 +18,7 @@ export default (router, tpl) => {
|
||||
select count(*) as total
|
||||
from "items"
|
||||
where src ilike ${'%' + tag.substring(4) + '%'}
|
||||
group by "items".id, "tags".tag
|
||||
group by "items".id
|
||||
`).length;
|
||||
}
|
||||
else {
|
||||
@@ -41,7 +41,8 @@ export default (router, tpl) => {
|
||||
select *
|
||||
from "items"
|
||||
where src ilike ${'%' + tag.substring(4) + '%'}
|
||||
group by "items".id, "tags".tag
|
||||
group by "items".id
|
||||
order by "items".id desc
|
||||
offset ${offset}
|
||||
limit ${_eps}
|
||||
`;
|
||||
|
Reference in New Issue
Block a user