Skip to content

Commit 82c54c8

Browse files
committed
fix: update cron
1 parent 2aede8c commit 82c54c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cron/updateHighlightedViews.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,24 @@ import { TrendingSource } from '../entity/TrendingSource';
88
import { TrendingTag } from '../entity/TrendingTag';
99
import { PopularVideoPost } from '../entity/PopularVideoPost';
1010
import { UserStats } from '../entity';
11+
import { TrendingUserPost } from '../entity/TrendingUserPost';
12+
import { TrendingUserSource } from '../entity/TrendingUserSource';
13+
import { PopularUserPost } from '../entity/PopularUserPost';
14+
import { PopularUserSource } from '../entity/PopularUserSource';
1115

1216
const cron: Cron = {
1317
name: 'update-highlighted-views',
1418
handler: async (con, logger) => {
1519
const viewsToRefresh = [
1620
TrendingPost,
1721
TrendingSource,
22+
TrendingUserPost,
23+
TrendingUserSource,
1824
TrendingTag,
1925
PopularPost,
2026
PopularSource,
27+
PopularUserPost,
28+
PopularUserSource,
2129
PopularTag,
2230
PopularVideoPost,
2331
PopularVideoSource,

0 commit comments

Comments
 (0)