Skip to content
Snippets Groups Projects
Commit 97c4758d authored by syuilo's avatar syuilo
Browse files

Use _id instead of createdAt to improve performance

parent f20c08f0
No related branches found
Tags 13.10.3
No related merge requests found
......@@ -38,12 +38,8 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
if (pollErr) return rej('invalid poll param');
const query = {
createdAt: {
$gte: new Date(Date.now() - ms('1days'))
},
renoteCount: {
$gt: 0
},
_id: { $gte: new Date(Date.now() - ms('1days')) },
renoteCount: { $gt: 0 },
'_user.host': null
} as any;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment