mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
Fix bug
This commit is contained in:
parent
ba3b887a33
commit
7c236b8b87
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ export default define(meta, async (ps) => {
|
||||||
const hashtags = await Hashtags.createQueryBuilder('tag')
|
const hashtags = await Hashtags.createQueryBuilder('tag')
|
||||||
.where('tag.name like :q', { q: ps.query.toLowerCase() + '%' })
|
.where('tag.name like :q', { q: ps.query.toLowerCase() + '%' })
|
||||||
.orderBy('tag.count', 'DESC')
|
.orderBy('tag.count', 'DESC')
|
||||||
|
.groupBy('tag.id')
|
||||||
.take(ps.limit!)
|
.take(ps.limit!)
|
||||||
.skip(ps.offset)
|
.skip(ps.offset)
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
Loading…
Reference in a new issue