Skip to content

Commit

Permalink
Fix campaign application link in mail to organizer and mail to admin (#…
Browse files Browse the repository at this point in the history
…674)

* chore: remove unused deps

* fix: wrong link when applying for campaign

- 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 authored Nov 22, 2024
1 parent f96d503 commit ad8ec0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 ad8ec0f

Please sign in to comment.