Skip to content

Commit de359aa

Browse files
committed
fix: deps cycles importing isomorphic-dompurify into import script
1 parent 6b1b5ef commit de359aa

1 file changed

Lines changed: 11 additions & 22 deletions

File tree

bin/import.ts

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
import { readFileSync } from 'fs';
22
import createOrGetConnection from '../src/db';
33
import { DataSource } from 'typeorm';
4-
import { SourceTagView } from '../src/entity/SourceTagView';
5-
import { TagRecommendation } from '../src/entity/TagRecommendation';
6-
import { PopularPost } from '../src/entity/PopularPost';
7-
import { PopularSource } from '../src/entity/PopularSource';
8-
import { PopularTag } from '../src/entity/PopularTag';
9-
import { PopularVideoPost } from '../src/entity/PopularVideoPost';
10-
import { PopularVideoSource } from '../src/entity/PopularVideoSource';
11-
import { TrendingPost } from '../src/entity/TrendingPost';
12-
import { TrendingSource } from '../src/entity/TrendingSource';
13-
import { TrendingTag } from '../src/entity/TrendingTag';
14-
import { UserStats } from '../src/entity/user/UserStats';
154
import z from 'zod';
165
import { zodToParseArgs } from './common';
176

@@ -39,17 +28,17 @@ const importEntity = async (
3928
};
4029

4130
const viewsToRefresh = [
42-
TagRecommendation,
43-
SourceTagView,
44-
TrendingPost,
45-
TrendingSource,
46-
TrendingTag,
47-
PopularPost,
48-
PopularSource,
49-
PopularTag,
50-
PopularVideoPost,
51-
PopularVideoSource,
52-
UserStats,
31+
'TagRecommendation',
32+
'SourceTagView',
33+
'TrendingPost',
34+
'TrendingSource',
35+
'TrendingTag',
36+
'PopularPost',
37+
'PopularSource',
38+
'PopularTag',
39+
'PopularVideoPost',
40+
'PopularVideoSource',
41+
'UserStats',
5342
];
5443

5544
const paramsSchema = z.object({

0 commit comments

Comments
 (0)