From 2b8187f7abcf914248040c2ebe351d15d38fb031 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 26 Apr 2019 00:54:11 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/users/recommendation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 5b74d442c..38b420c33 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -42,9 +42,9 @@ export const meta = { export default define(meta, async (ps, me) => { const query = Users.createQueryBuilder('user') .where('user.isLocked = FALSE') - .where('user.host IS NULL') - .where('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) }) - .where('user.id != :meId', { meId: me.id }) + .andWhere('user.host IS NULL') + .andWhere('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) }) + .andWhere('user.id != :meId', { meId: me.id }) .orderBy('user.followersCount', 'DESC'); generateMuteQueryForUsers(query, me);