Skip to content

Commit 965e811

Browse files
authored
Merge pull request #51 from Giveth/staging
Next release
2 parents b553289 + 5f37891 commit 965e811

8 files changed

+388
-37
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.16.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is a microservice for managing notifications for both https://giveth.io and
1515
[References](#References)
1616

1717
### Used_Technologies
18-
* Nodejs **v16**
18+
* Nodejs **v16** (You can use `nvm use` command to load appropriate Node version by `nvm`)
1919
* Typescript **v4.5.2**
2020
* DB: postgres **v14.2**
2121
* DB ORM: TypeORM **v0.3.6**

migrations/1660539945623-createThirdParty.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class createThirdParty1660539945623 implements MigrationInterface {
1717
name: 'microService',
1818
type: 'text',
1919
isNullable: false,
20+
isUnique: true,
2021
},
2122
{
2223
name: 'secret',

migrations/1660716115917-seedNotificationType.ts

+30-29
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,10 @@ export const GivethNotificationTypes = {
243243
},
244244
{
245245
type: 'p',
246-
content:
247-
', which you supported, is now listed on the Giveth projects page.',
246+
content: ' is now listed on the Giveth projects page.',
248247
},
249248
],
250-
content:
251-
'{project name}, which you supported, is now listed on the Giveth projects page',
249+
content: '{project name} is now listed on the Giveth projects page',
252250
},
253251
PROJECT_UNLISTED: {
254252
name: NOTIFICATION_TYPE_NAMES.PROJECT_UNLISTED_OWNER,
@@ -307,7 +305,7 @@ export const GivethNotificationTypes = {
307305
},
308306
{
309307
type: 'p',
310-
content: ', which you supported, did not meet our ',
308+
content: ' did not meet our ',
311309
},
312310
{
313311
type: 'a',
@@ -426,7 +424,7 @@ export const GivethNotificationTypes = {
426424
{
427425
type: 'p',
428426
content:
429-
', which you supported, has been canceled by an admin because it failed to adhere to our ',
427+
' has been canceled by an admin because it failed to adhere to our ',
430428
},
431429
{
432430
type: 'a',
@@ -492,10 +490,10 @@ export const GivethNotificationTypes = {
492490
},
493491
{
494492
type: 'p',
495-
content: ' , which you supported, has been reactivated.',
493+
content: ' has been reactivated.',
496494
},
497495
],
498-
content: '{project name}, which you supported, has been reactivated',
496+
content: '{project name} has been reactivated',
499497
},
500498

501499
PROJECT_DEACTIVATED: {
@@ -548,10 +546,10 @@ export const GivethNotificationTypes = {
548546
},
549547
{
550548
type: 'p',
551-
content: ', which you supported, has been deactivated.',
549+
content: ' has been deactivated.',
552550
},
553551
],
554-
content: '{project name}, which you supported, has been deactivated.',
552+
content: '{project name} has been deactivated.',
555553
},
556554
PROJECT_VERIFIED: {
557555
name: NOTIFICATION_TYPE_NAMES.PROJECT_VERIFIED_OWNER,
@@ -624,8 +622,7 @@ export const GivethNotificationTypes = {
624622
},
625623
{
626624
type: 'p',
627-
content:
628-
'which you supported, is now verified. You can now donate and receive ',
625+
content: ' is now verified. You can now donate and receive ',
629626
},
630627
{
631628
type: 'a',
@@ -698,7 +695,7 @@ export const GivethNotificationTypes = {
698695
{
699696
type: 'p',
700697
content:
701-
'has not been approved for verification. Learn more about our verification requirements ',
698+
' has not been approved for verification. Learn more about our verification requirements ',
702699
},
703700
{
704701
type: 'a',
@@ -886,10 +883,11 @@ export const GivethNotificationTypes = {
886883
{
887884
type: 'p',
888885
//TODO Carlos please check this copy with existing autopilot emails
889-
content: ' would lose verification badge soon',
886+
content: ' will lose its verification badge soon',
890887
},
891888
],
892-
content: 'You project {project name} would lose verification badge soon',
889+
content:
890+
'Your project {project name} will lose its verification badge soon',
893891
},
894892
PROJECT_BADGE_REVOKE_WARNING: {
895893
name: 'Project badge revoke warning',
@@ -915,10 +913,11 @@ export const GivethNotificationTypes = {
915913
{
916914
type: 'p',
917915
//TODO Carlos please check this copy with existing autopilot emails
918-
content: ' would lose verification badge soon.',
916+
content: ' will lose its verification badge soon.',
919917
},
920918
],
921-
content: 'You project {project name} would lose verification badge soon.',
919+
content:
920+
'Your project {project name} will lose its verification badge soon.',
922921
},
923922
PROJECT_BADGE_REVOKE_LAST_WARNING: {
924923
name: 'Project badge revoke last warning',
@@ -944,11 +943,12 @@ export const GivethNotificationTypes = {
944943
{
945944
type: 'p',
946945
//TODO Carlos please check this copy with existing autopilot emails
947-
content: ' would lose verification badge soon. this is last warning.',
946+
content:
947+
' will lose its verification badge soon. this is the last warning.',
948948
},
949949
],
950950
content:
951-
'You project {project name} would lose verification badge soon, this is last warning.',
951+
'Your project {project name} will lose its verification badge soon, this is the last warning.',
952952
},
953953
PROJECT_BADGE_UP_FOR_REVOKING: {
954954
name: 'Project badge up for revoking',
@@ -974,10 +974,11 @@ export const GivethNotificationTypes = {
974974
{
975975
type: 'p',
976976
//TODO Carlos please check this copy with existing autopilot emails
977-
content: ' would lose verification badge soon.',
977+
content: ' will lose its verification badge soon.',
978978
},
979979
],
980-
content: 'You project {project name} would lose verification badge soon.',
980+
content:
981+
'Your project {project name} will lose its verification badge soon.',
981982
},
982983
PROJECT_UNVERIFIED: {
983984
name: NOTIFICATION_TYPE_NAMES.PROJECT_UNVERIFIED_OWNER,
@@ -1035,7 +1036,7 @@ export const GivethNotificationTypes = {
10351036
{
10361037
type: 'p',
10371038
content:
1038-
', which you supported, has lost its verification status. Learn more about our verification requirements',
1039+
' has lost its verification status. Learn more about our verification requirements',
10391040
},
10401041
{
10411042
type: 'a',
@@ -1049,7 +1050,7 @@ export const GivethNotificationTypes = {
10491050
},
10501051
],
10511052
content:
1052-
'{project name}, which you supported, has lost its verification status. Learn more about our verification requirements here.',
1053+
'{project name} has lost its verification status. Learn more about our verification requirements here.',
10531054
},
10541055
MADE_DONATION: {
10551056
name: 'Made donation',
@@ -1206,8 +1207,8 @@ export const GivethNotificationTypes = {
12061207
},
12071208

12081209
VERIFICATION_FORM_GOT_DRAFT_BY_ADMIN: {
1209-
name: 'Verification form got draft by admin',
1210-
description: 'Verification form got drafted by admin',
1210+
name: NOTIFICATION_TYPE_NAMES.VERIFICATION_FORM_GOT_DRAFT_BY_ADMIN,
1211+
description: 'Verification form was drafted by an admin',
12111212
microService: MICRO_SERVICES.givethio,
12121213
category: NOTIFICATION_CATEGORY.PROJECT_RELATED,
12131214
icon: '',
@@ -1229,10 +1230,10 @@ export const GivethNotificationTypes = {
12291230
},
12301231
{
12311232
type: 'p',
1232-
content: ' got draft by admin.',
1233+
content: ' was drafted by an admin.',
12331234
},
12341235
],
1235-
content: 'Your project {project name} got draft by admin.',
1236+
content: 'Your project {project name} was drafted by an admin.',
12361237
},
12371238
PROJECT_RECEIVED_LIKE: {
12381239
name: 'project liked',
@@ -1292,10 +1293,10 @@ export const GivethNotificationTypes = {
12921293
},
12931294
{
12941295
type: 'p',
1295-
content: ', which you supported, has a new update!',
1296+
content: ' has a new update!',
12961297
},
12971298
],
1298-
content: '{Project name} , which you supported, has a new update!',
1299+
content: '{Project name} has a new update!',
12991300
},
13001301
YOU_BOOSTED: {
13011302
name: 'You boosted',

0 commit comments

Comments
 (0)