mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
fix: use correct query generate function (#7657)
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
29c0a35d9e
commit
70cf229d3a
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import $ from 'cafy';
|
|||
import define from '../define';
|
||||
import { Users } from '@/models/index';
|
||||
import { generateMutedUserQueryForUsers } from '../common/generate-muted-user-query';
|
||||
import { generateBlockedUserQuery } from '../common/generate-block-query';
|
||||
import { generateBlockQueryForUsers } from '../common/generate-block-query';
|
||||
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
@ -90,7 +90,7 @@ export default define(meta, async (ps, me) => {
|
|||
}
|
||||
|
||||
if (me) generateMutedUserQueryForUsers(query, me);
|
||||
if (me) generateBlockedUserQuery(query, me);
|
||||
if (me) generateBlockQueryForUsers(query, me);
|
||||
|
||||
query.take(ps.limit!);
|
||||
query.skip(ps.offset);
|
||||
|
|
Loading…
Reference in a new issue