-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from Giveth/release-may-2024
Release: May 2024
- Loading branch information
Showing
10 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
migrations/1714582062587-seedNotificationTypeForCreateOrttoUser.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
import { NOTIFICATION_CATEGORY, NOTIFICATION_TYPE_NAMES } from '../src/types/general'; | ||
import { MICRO_SERVICES } from '../src/utils/utils'; | ||
import { NotificationType, SCHEMA_VALIDATORS_NAMES } from '../src/entities/notificationType'; | ||
|
||
const OrttoUserNotificationType = [ | ||
{ | ||
name: NOTIFICATION_TYPE_NAMES.CREATE_ORTTO_PROFILE, | ||
description: NOTIFICATION_TYPE_NAMES.CREATE_ORTTO_PROFILE, | ||
microService: MICRO_SERVICES.givethio, | ||
category: NOTIFICATION_CATEGORY.ORTTO, | ||
schemaValidator: SCHEMA_VALIDATORS_NAMES.CREATE_ORTTO_PROFILE, | ||
} | ||
] | ||
|
||
export class seedNotificationTypeForCreateOrttoUser1714582062587 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.manager.save(NotificationType, OrttoUserNotificationType); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`DELETE FROM notification_type WHERE "name" = 'Create Ortto profile';`, | ||
); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -1387,7 +1387,6 @@ function sendNotificationTestCases() { | |
email: '[email protected]', | ||
title: 'How many photos is too many photos?', | ||
firstName: 'firstName', | ||
projectOwnerId: '68', | ||
slug: 'how-many-photos-is-too-many-photos', | ||
amount: 0.0001, | ||
transactionId: generateRandomTxHash(), | ||
|
@@ -1428,7 +1427,6 @@ function sendNotificationTestCases() { | |
email: '[email protected]', | ||
title: 'How many photos is too many photos?', | ||
firstName: 'firstName', | ||
projectOwnerId: '68', | ||
slug: 'how-many-photos-is-too-many-photos', | ||
amount: 0.0001, | ||
transactionId: generateRandomTxHash(), | ||
|
@@ -1497,7 +1495,6 @@ function sendNotificationTestCases() { | |
email: '[email protected]', | ||
title: 'How many photos is too many photos?', | ||
firstName: 'firstName', | ||
projectOwnerId: '68', | ||
slug: 'how-many-photos-is-too-many-photos', | ||
amount: 0.0001, | ||
transactionId: generateRandomTxHash(), | ||
|
@@ -1538,7 +1535,6 @@ function sendNotificationTestCases() { | |
email: '[email protected]', | ||
title: 'How many photos is too many photos?', | ||
firstName: 'firstName', | ||
projectOwnerId: '68', | ||
slug: 'how-many-photos-is-too-many-photos', | ||
amount: 0.0001, | ||
transactionId: generateRandomTxHash(), | ||
|
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