From 944f9524e2dcd327ca1cb1eea6dc31eb75cbaddb Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 12 Jun 2018 01:45:58 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/hashtags/trend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/hashtags/trend.ts b/src/server/api/endpoints/hashtags/trend.ts index 257718014d..3ad143aaf0 100644 --- a/src/server/api/endpoints/hashtags/trend.ts +++ b/src/server/api/endpoints/hashtags/trend.ts @@ -60,7 +60,7 @@ module.exports = () => new Promise(async (res, rej) => { //#region 2. 1で取得したそれぞれのタグについて、「直近a分間のユニーク投稿数が今からa分前~今からb分前の間のユニーク投稿数のn倍以上」かどうかを判定する const hotsPromises = tags.map(async tag => { const passedCount = (await Note.distinct('userId', { - tags: tag, + tags: tag.name, createdAt: { $lt: new Date(Date.now() - rangeA), $gt: new Date(Date.now() - rangeB)