Fix users recommendation query

This commit is contained in:
mei23 2018-10-10 02:04:16 +09:00
parent db248a69c8
commit 375f86ec82

View file

@ -67,7 +67,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
_id: { _id: {
$nin: followingIds.concat(mutedUserIds) $nin: followingIds.concat(mutedUserIds)
}, },
isLocked: false, isLocked: { $ne: true },
$or: [{ $or: [{
lastUsedAt: { lastUsedAt: {
$gte: new Date(Date.now() - ms('7days')) $gte: new Date(Date.now() - ms('7days'))