Fix bug
This commit is contained in:
parent
291e7e7943
commit
2b8187f7ab
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,9 @@ export const meta = {
|
||||||
export default define(meta, async (ps, me) => {
|
export default define(meta, async (ps, me) => {
|
||||||
const query = Users.createQueryBuilder('user')
|
const query = Users.createQueryBuilder('user')
|
||||||
.where('user.isLocked = FALSE')
|
.where('user.isLocked = FALSE')
|
||||||
.where('user.host IS NULL')
|
.andWhere('user.host IS NULL')
|
||||||
.where('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) })
|
.andWhere('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) })
|
||||||
.where('user.id != :meId', { meId: me.id })
|
.andWhere('user.id != :meId', { meId: me.id })
|
||||||
.orderBy('user.followersCount', 'DESC');
|
.orderBy('user.followersCount', 'DESC');
|
||||||
|
|
||||||
generateMuteQueryForUsers(query, me);
|
generateMuteQueryForUsers(query, me);
|
||||||
|
|
Loading…
Reference in a new issue