This commit is contained in:
MeiMei 2019-03-12 09:50:20 +09:00 committed by syuilo
parent 65631525f6
commit 5eb02b4901

View file

@ -52,10 +52,18 @@ export default define(meta, async (ps, user) => {
$ne: user._id,
$nin: hideUserIds
},
visibility: 'public',
poll: {
$exists: true,
$ne: null
},
$or: [{
'poll.expiresAt': null
}, {
'poll.expiresAt': {
$gt: new Date()
}
}],
}, {
limit: ps.limit,
skip: ps.offset,