π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix predictions
Nevo David4100fdfeb703
diff --git a/apps/backend/src/api/routes/analytics.controller.ts b/apps/backend/src/api/routes/analytics.controller.tsindex c1f3aee93..a95a32a51 100644--- a/apps/backend/src/api/routes/analytics.controller.ts+++ b/apps/backend/src/api/routes/analytics.controller.ts@@ -24,7 +24,7 @@ export class AnalyticsController {@Get('/trending')async getTrending() {const stars = await this._starsService.predictTrending(10);- const findFirst = stars.find(star => dayjs(star).isBefore(dayjs()));+ const findFirst = stars.find(star => dayjs(star).isAfter(dayjs()));const trendings = (await this._starsService.getTrending('')).reverse();const dates = trendings.map(result => dayjs(result.date).toDate());const lastTrendingDate = dates[dates.length - 1];