Skip to content

Commit

Permalink
fix: wrong link when applying for campaign
Browse files Browse the repository at this point in the history
- fix the organizer edit link in the email notification for a new campaign
- fix the admin edit link in the email notification for a new campaign
  • Loading branch information
gparlakov committed Nov 16, 2024
1 parent 7068eb6 commit 5ef7de2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
},
"postStartCommand": "yarn",
"extensions": [
"ms-azuretools.vscode-docker",
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ describe('CampaignApplicationService', () => {

const emailAdminData = {
campaignApplicationName: mockSingleCampaignApplication.campaignName,
campaignApplicationLink: `${process.env.APP_URL}/admin/campaigns/${mockSingleCampaignApplication.id}`,
campaignApplicationLink: `${process.env.APP_URL}/admin/campaigns/edit/${mockSingleCampaignApplication.id}`,
email: mockPerson.email as string,
firstName: mockPerson.firstName,
}

const emailOrganizerData = {
campaignApplicationName: mockSingleCampaignApplication.campaignName,
campaignApplicationLink: `${process.env.APP_URL}/campaign/applications/${mockSingleCampaignApplication.id}`,
campaignApplicationLink: `${process.env.APP_URL}/campaigns/application/${mockSingleCampaignApplication.id}`,
email: mockPerson.email as string,
firstName: mockPerson.firstName,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class CampaignApplicationService {
campaignApplicationName,
campaignApplicationLink: `${this.configService.get(
'APP_URL',
)}/admin/campaigns/${campaignApplicationId}`,
)}/admin/campaigns/edit/${campaignApplicationId}`,
email: person.email as string,
firstName: person.firstName,
}
Expand All @@ -119,7 +119,7 @@ export class CampaignApplicationService {
campaignApplicationName,
campaignApplicationLink: `${this.configService.get(
'APP_URL',
)}/campaign/applications/${campaignApplicationId}`,
)}/campaigns/application/${campaignApplicationId}`,
email: person.email as string,
firstName: person.firstName,
}
Expand Down

0 comments on commit 5ef7de2

Please sign in to comment.