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{
18
18
// this.logger.log(`Running initial job with startDate ${startDate} and endDate ${endDate}`)
19
19
// return await this.analyze(startDate, endDate);
20
20
// }
21
-
21
+
22
22
@Cron ( CronExpression . EVERY_2_HOURS )
23
23
async handleCron ( ) {
24
24
const start = new Date ( ) ;
@@ -28,12 +28,12 @@ export class CronService{
28
28
}
29
29
30
30
async analyze ( ) {
31
- try {
31
+ try {
32
32
const created : number = await this . appService . pullRadioMessages ( ) ;
33
33
console . log ( 'Items created: ' , created ) ;
34
34
} catch ( e ) {
35
35
this . logger . error ( 'Cron job error: ' , e . message ) ;
36
36
throw new HttpException ( e . message , 500 ) ;
37
37
}
38
38
}
39
- }
39
+ }
Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ import { Logger } from '@nestjs/common';
7
7
import { SwaggerModule , DocumentBuilder } from '@nestjs/swagger' ;
8
8
import { NestFactory } from '@nestjs/core' ;
9
9
import { AppModule } from './app/app.module' ;
10
- import * as fs from 'fs' ;
10
+ // import * as fs from 'fs';
11
11
12
12
async 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 ) ;
20
21
app . enableCors ( ) ;
21
22
const globalPrefix = 'triage' ;
22
23
app . setGlobalPrefix ( globalPrefix ) ;
You can’t perform that action at this time.
0 commit comments