Skip to content

Commit 9b04d62

Browse files
authored
fix: update slack notif link to point to correct opportunity url (#3306)
1 parent 21aded2 commit 9b04d62

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

__tests__/workers/candidateAcceptedOpportunitySlack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('candidateAcceptedOpportunitySlack worker', () => {
6464
attachments: [
6565
{
6666
title: 'Senior Full Stack Developer',
67-
title_link: `${process.env.COMMENTS_PREFIX}/opportunities/550e8400-e29b-41d4-a716-446655440001`,
67+
title_link: `${process.env.COMMENTS_PREFIX}/jobs/550e8400-e29b-41d4-a716-446655440001`,
6868
fields: [
6969
{
7070
title: 'User',
@@ -114,7 +114,7 @@ describe('candidateAcceptedOpportunitySlack worker', () => {
114114
attachments: [
115115
{
116116
title: 'Senior Full Stack Developer',
117-
title_link: `${process.env.COMMENTS_PREFIX}/opportunities/550e8400-e29b-41d4-a716-446655440001`,
117+
title_link: `${process.env.COMMENTS_PREFIX}/jobs/550e8400-e29b-41d4-a716-446655440001`,
118118
fields: [
119119
{
120120
title: 'User',
@@ -180,7 +180,7 @@ describe('candidateAcceptedOpportunitySlack worker', () => {
180180
attachments: [
181181
{
182182
title: 'Frontend Developer',
183-
title_link: `${process.env.COMMENTS_PREFIX}/opportunities/550e8400-e29b-41d4-a716-446655440002`,
183+
title_link: `${process.env.COMMENTS_PREFIX}/jobs/550e8400-e29b-41d4-a716-446655440002`,
184184
fields: [
185185
{
186186
title: 'User',

src/workers/candidateAcceptedOpportunitySlack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const worker: TypedWorker<'api.v1.candidate-accepted-opportunity'> = {
3535
attachments: [
3636
{
3737
title: opportunity?.title || `Opportunity: ${opportunityId}`,
38-
title_link: `${process.env.COMMENTS_PREFIX}/opportunities/${opportunityId}`,
38+
title_link: `${process.env.COMMENTS_PREFIX}/jobs/${opportunityId}`,
3939
fields: [
4040
{
4141
title: 'User',

0 commit comments

Comments
 (0)