File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
apps/frontend/src/components/launches
libraries/nestjs-libraries/src Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import { useT } from '@gitroom/react/translation/get.transation.service.client';
77import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store' ;
88import useSWR from 'swr' ;
99import { TopTitle } from '@gitroom/frontend/components/launches/helpers/top.title.component' ;
10- import { Input } from '@gitroom/react/form/input' ;
11- import { timer } from '@gitroom/helpers/utils/timer' ;
1210import { VideoWrapper } from '@gitroom/frontend/components/videos/video.render.component' ;
1311import { FormProvider , useForm } from 'react-hook-form' ;
1412
Original file line number Diff line number Diff line change 11import { Injectable } from '@nestjs/common' ;
22
3- import pLimit from 'p-limit' ;
4- const limit = pLimit ( 10 ) ;
3+ let limit : any ;
4+
5+ ( async ( ) => {
6+ const pLimit = await import ( 'p-limit' ) ;
7+ limit = pLimit . default ( 10 ) ;
8+ } ) ( ) ;
59
610@Injectable ( )
711export class FalService {
Original file line number Diff line number Diff line change @@ -11,10 +11,14 @@ import { UploadFactory } from '@gitroom/nestjs-libraries/upload/upload.factory';
1111import { Readable } from 'stream' ;
1212import { parseBuffer } from 'music-metadata' ;
1313import { stringifySync } from 'subtitle' ;
14-
15- import pLimit from 'p-limit' ;
1614import { FalService } from '@gitroom/nestjs-libraries/openai/fal.service' ;
17- const limit = pLimit ( 2 ) ;
15+
16+ let limit : any ;
17+
18+ ( async ( ) => {
19+ const pLimit = await import ( 'p-limit' ) ;
20+ limit = pLimit . default ( 2 ) ;
21+ } ) ( ) ;
1822
1923const transloadit = new Transloadit ( {
2024 authKey : process . env . TRANSLOADIT_AUTH ,
You can’t perform that action at this time.
0 commit comments