-
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.
Merge branch 'master' into stripe-donation-flow
- Loading branch information
Showing
13 changed files
with
47 additions
and
25 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
8 changes: 1 addition & 7 deletions
8
apps/api/src/domain/generated/donation/dto/create-donation.dto.ts
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,7 +1 @@ | ||
import { DonationType } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
export class CreateDonationDto { | ||
@ApiProperty({ enum: DonationType }) | ||
type: DonationType | ||
} | ||
export class CreateDonationDto {} |
8 changes: 1 addition & 7 deletions
8
apps/api/src/domain/generated/donation/dto/update-donation.dto.ts
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,7 +1 @@ | ||
import { DonationType } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
export class UpdateDonationDto { | ||
@ApiProperty({ enum: DonationType }) | ||
type?: DonationType | ||
} | ||
export class UpdateDonationDto {} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Module } from '@nestjs/common' | ||
import { MyLogger } from './logger' | ||
|
||
@Module({ | ||
providers: [MyLogger], | ||
exports: [MyLogger], | ||
}) | ||
export class LoggerModule {} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ConsoleLogger, Injectable } from '@nestjs/common' | ||
import { InjectSentry, SentryService } from '@ntegral/nestjs-sentry' | ||
|
||
@Injectable() | ||
export class MyLogger extends ConsoleLogger { | ||
constructor(@InjectSentry() private readonly client: SentryService) { | ||
super() | ||
} | ||
|
||
error(message: any, stack?: string, context?: string) { | ||
// add your tailored logic here | ||
|
||
this.client.instance().captureMessage(message, 'error') | ||
super.error(message, stack, context) | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
migrations/20240515124820_change_bank_transaction_description_to_text/migration.sql
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "bank_transactions" ALTER COLUMN "description" SET DATA TYPE TEXT; |
2 changes: 2 additions & 0 deletions
2
migrations/20240517165753_set_default_donation_type/migration.sql
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "donations" ALTER COLUMN "type" SET DEFAULT 'donation'; |
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