Skip to content

Commit 5eb676f

Browse files
authored
Merge pull request #25 from xeptagondev/iverfiy-rdc-be
Iverfiy rdc be
2 parents c32f809 + e06fb4e commit 5eb676f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

apps/triage/src/app/cron.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
}

apps/triage/src/main.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ import { Logger } from '@nestjs/common';
77
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
88
import { NestFactory } from '@nestjs/core';
99
import { AppModule } from './app/app.module';
10-
import * as fs from 'fs';
10+
//import * as fs from 'fs';
1111

1212
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);
2021
app.enableCors();
2122
const globalPrefix = 'triage';
2223
app.setGlobalPrefix(globalPrefix);

0 commit comments

Comments
 (0)