summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/trend.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:59:11 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:59:11 +0900
commit71065077f66662381a6d5f08ad8b345ceaf742db (patch)
treeb24eaf45f8738f1765f9baa53c42c8a8ca9d94c6 /src/api/endpoints/posts/trend.ts
parentwip (diff)
downloadmisskey-71065077f66662381a6d5f08ad8b345ceaf742db.tar.gz
misskey-71065077f66662381a6d5f08ad8b345ceaf742db.tar.bz2
misskey-71065077f66662381a6d5f08ad8b345ceaf742db.zip
wip
Diffstat (limited to 'src/api/endpoints/posts/trend.ts')
-rw-r--r--src/api/endpoints/posts/trend.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts
index 3f92f06167..bc0c47fbc6 100644
--- a/src/api/endpoints/posts/trend.ts
+++ b/src/api/endpoints/posts/trend.ts
@@ -41,7 +41,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
createdAt: {
$gte: new Date(Date.now() - ms('1days'))
},
- repost_count: {
+ repostCount: {
$gt: 0
}
} as any;
@@ -68,7 +68,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
limit: limit,
skip: offset,
sort: {
- repost_count: -1,
+ repostCount: -1,
_id: -1
}
});