From 2696e2427b18a20ab0d413d29fdb3cb4db0f0c94 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 12 Jun 2018 01:48:29 +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 3ad143aaf..91fbd2f9f 100644 --- a/src/server/api/endpoints/hashtags/trend.ts +++ b/src/server/api/endpoints/hashtags/trend.ts @@ -67,7 +67,7 @@ module.exports = () => new Promise(async (res, rej) => { } }) as any).length; - if (passedCount > (tag.count * coefficient)) { + if (tag.count > (passedCount * coefficient)) { return tag; } else { return null;