mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-26 09:36:02 -07:00
[API] Improve trend algorithm
This commit is contained in:
parent
598b257351
commit
28f22f03a3
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||||
const query = {
|
const query = {
|
||||||
created_at: {
|
created_at: {
|
||||||
$gte: new Date(Date.now() - ms('1days'))
|
$gte: new Date(Date.now() - ms('1days'))
|
||||||
|
},
|
||||||
|
repost_count: {
|
||||||
|
$gt: 0
|
||||||
}
|
}
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue