-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added endpoint to rerun bank transactions (#516)
* added endpoint to rerun bank transaction sync * fixed tests complaining for missing enviornment variables * added tests and fixed logger
- Loading branch information
1 parent
1660bd6
commit 360245f
Showing
10 changed files
with
118 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import { Module } from '@nestjs/common' | ||
import { CampaignModule } from '../campaign/campaign.module' | ||
import { DonationsModule } from '../donations/donations.module' | ||
import { ExportService } from '../export/export.service' | ||
import { PrismaService } from '../prisma/prisma.service' | ||
import { BankTransactionsController } from './bank-transactions.controller' | ||
import { BankTransactionsService } from './bank-transactions.service' | ||
import { ConfigModule } from '@nestjs/config' | ||
import { ExportModule } from '../export/export.module' | ||
import { IrisTasks } from '../tasks/bank-import/import-transactions.task' | ||
import { HttpModule } from '@nestjs/axios' | ||
import { EmailService } from '../email/email.service' | ||
import { TemplateService } from '../email/template.service' | ||
|
||
@Module({ | ||
imports: [CampaignModule, DonationsModule], | ||
imports: [CampaignModule, DonationsModule, ConfigModule, ExportModule, HttpModule], | ||
controllers: [BankTransactionsController], | ||
providers: [BankTransactionsService, PrismaService, ExportService], | ||
providers: [BankTransactionsService, PrismaService, IrisTasks, EmailService, TemplateService], //TODO: Create Email module to not need to import each service | ||
exports: [BankTransactionsService], | ||
}) | ||
export class BankTransactionsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters