forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport.module.ts
More file actions
45 lines (44 loc) · 1.4 KB
/
Copy pathexport.module.ts
File metadata and controls
45 lines (44 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Module } from "@nestjs/common";
import { BullModule } from "@nestjs/bull";
import { TypeOrmModule } from "@nestjs/typeorm";
import { ExportJob } from "./entities/export-job.entity";
import { ExportTemplate } from "./entities/export-template.entity";
import { ExportService } from "./export.service";
import { ExportController } from "./export.controller";
import { PdfGeneratorService } from "./pdf-generator.service";
import { CsvGeneratorService } from "./csv-generator.service";
import { QuickBooksGeneratorService } from "./quickbooks-generator.service";
import { OfxGeneratorService } from "./ofx-generator.service";
import { EmailService } from "./email.service";
import { StorageService } from "./storage.service";
import { ExportProcessor } from "./export.processor";
@Module({
imports: [
TypeOrmModule.forFeature([ExportJob, ExportTemplate]),
BullModule.registerQueue({
name: "export",
defaultJobOptions: {
attempts: 3,
backoff: {
type: "exponential",
delay: 3000,
},
removeOnComplete: true,
removeOnFail: false,
},
}),
],
controllers: [ExportController],
providers: [
ExportService,
ExportProcessor,
PdfGeneratorService,
CsvGeneratorService,
QuickBooksGeneratorService,
OfxGeneratorService,
EmailService,
StorageService,
],
exports: [ExportService],
})
export class ExportModule {}