File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class CronService{
1818 // this.logger.log(`Running initial job with startDate ${startDate} and endDate ${endDate}`)
1919 // return await this.analyze(startDate, endDate);
2020 // }
21-
21+
2222 @Cron ( CronExpression . EVERY_2_HOURS )
2323 async handleCron ( ) {
2424 const start = new Date ( ) ;
@@ -28,12 +28,12 @@ export class CronService{
2828 }
2929
3030 async analyze ( ) {
31- try {
31+ try {
3232 const created : number = await this . appService . pullRadioMessages ( ) ;
3333 console . log ( 'Items created: ' , created ) ;
3434 } catch ( e ) {
3535 this . logger . error ( 'Cron job error: ' , e . message ) ;
3636 throw new HttpException ( e . message , 500 ) ;
3737 }
3838 }
39- }
39+ }
Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ import { Logger } from '@nestjs/common';
77import { SwaggerModule , DocumentBuilder } from '@nestjs/swagger' ;
88import { NestFactory } from '@nestjs/core' ;
99import { AppModule } from './app/app.module' ;
10- import * as fs from 'fs' ;
10+ // import * as fs from 'fs';
1111
1212async function bootstrap ( ) {
13- const httpsOptions = {
14- key : fs . readFileSync ( 'private.key' ) ,
15- cert : fs . readFileSync ( 'certificate.crt' ) ,
16- } ;
17- const app = await NestFactory . create ( AppModule , {
18- httpsOptions,
19- } ) ;
13+ // const httpsOptions = {
14+ // key: fs.readFileSync('private.key'),
15+ // cert: fs.readFileSync('certificate.crt'),
16+ // };
17+ // const app = await NestFactory.create(AppModule ,{
18+ // httpsOptions,
19+ // });
20+ const app = await NestFactory . create ( AppModule ) ;
2021 app . enableCors ( ) ;
2122 const globalPrefix = 'triage' ;
2223 app . setGlobalPrefix ( globalPrefix ) ;
You can’t perform that action at this time.
0 commit comments