Skip to content

Commit 68f51ff

Browse files
committed
fix #5414
1 parent e9f0be3 commit 68f51ff

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/server/services/growsurf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export default class GrowsurfService {
8787
email: body.email,
8888
firstName: body.firstName,
8989
lastName: body.lastName,
90+
metadata: {
91+
tcHandle: body.tcHandle,
92+
},
9093
}));
9194
if (result.error) {
9295
res.status(result.code);

src/server/services/recruitCRM.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export default class RecruitCRMService {
195195
// referral tracking via growsurf
196196
if (referralCookie && referralCookie.gigId === id) {
197197
const gs = new GrowsurfService();
198+
const tcHandle = _.findIndex(form.custom_fields, { field_id: 2 });
198199
const growRes = await gs.addParticipant(JSON.stringify({
199200
email: form.email,
200201
referredBy: referralCookie.referralId,
@@ -203,6 +204,7 @@ export default class RecruitCRMService {
203204
lastName: form.last_name,
204205
metadata: {
205206
gigId: id,
207+
tcHandle: form.custom_fields[tcHandle].value,
206208
},
207209
}));
208210
// If everything set in Growsurf

src/shared/components/Gigs/GigDetails/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ export default function GigDetails(props) {
179179
<ul>
180180
<li>
181181
<img src={iconLabel1} alt="label 1" />
182-
<div><strong>Make sure your <a target="_blank" rel="noreferrer" href="https://www.topcoder.com/settings/profile">Topcoder profile</a> says it all.</strong> Fill out your profile to the best of your ability. Your skills, your location, your devices, etc, all help you improve your chances of being selected for a gig.</div>
182+
<div><strong>Make sure your <a target="_blank" rel="noreferrer" href="/settings/profile">Topcoder profile</a> says it all.</strong> Fill out your profile to the best of your ability. Your skills, your location, your devices, etc, all help you improve your chances of being selected for a gig.</div>
183183
</li>
184184
<li>
185185
<img src={iconLabel2} alt="label 2" />
186-
<div><strong>Let us know you’re here!</strong> Check in on our <a target="_blank" rel="noreferrer" href="https://apps.topcoder.com/forums/?module=ThreadList&forumID=703475">Gig Work forum</a> and tell us you’re looking for a gig. It’s great visibility for the Gig team.</div>
186+
<div><strong>Let us know you’re here!</strong> Check in on our <a target="_blank" rel="noreferrer" href={`${config.URL.FORUMS_VANILLA}/categories/gig-work-discusssions`}>Gig Work forum</a> and tell us you’re looking for a gig. It’s great visibility for the Gig team.</div>
187187
</li>
188188
<li>
189189
<img src={iconLabel3} alt="label 3" />
190-
<div><strong>Check out our <a target="_blank" rel="noreferrer" href="https://www.topcoder.com/challenges">Topcoder challenges</a> and participate.</strong> Challenges showing your technology skills make you a “qualified” candidate so we know you’re good. The proof is in the pudding!</div>
190+
<div><strong>Check out our <a target="_blank" rel="noreferrer" href="/challenges">Topcoder challenges</a> and participate.</strong> Challenges showing your technology skills make you a “qualified” candidate so we know you’re good. The proof is in the pudding!</div>
191191
</li>
192192
</ul>
193193
</div>

src/shared/containers/Gigs/RecruitCRMJobDetails.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ ${config.URL.BASE}${config.GIGS_PAGES_PATH}/${props.id}`,
155155
email: profile.email,
156156
firstName: profile.firstName,
157157
lastName: profile.lastName,
158+
tcHandle: profile.handle,
158159
}),
159160
headers: {
160161
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)