@@ -385,20 +385,20 @@ export default class RecruitCRMService {
385385 // candidate exists in growsurf
386386 // update candidate to set referrer only if it is not set already
387387 if ( ! existRes . referrer ) {
388- growRes = await gs . updateParticipant ( form . email , JSON . stringify ( {
388+ growRes = await gs . updateParticipant ( form . email , {
389389 referredBy : referralCookie . referralId ,
390390 referralStatus : 'CREDIT_PENDING' ,
391391 metadata : {
392392 gigID : id ,
393393 } ,
394- } ) ) ;
394+ } ) ;
395395 // add referral link to candidate profile in recruitCRM
396396 if ( ! growRes . error ) {
397397 isReferred = true ;
398398 form . custom_fields . push ( {
399399 field_id : 6 , value : `https://app.growsurf.com/dashboard/campaign/${ config . GROWSURF_CAMPAIGN_ID } /participant/${ growRes . id } ` ,
400400 } ) ;
401- }
401+ } else notifyKirilAndNick ( growRes ) ;
402402 }
403403 } else {
404404 growRes = await gs . addParticipant ( JSON . stringify ( {
@@ -418,7 +418,7 @@ export default class RecruitCRMService {
418418 form . custom_fields . push ( {
419419 field_id : 6 , value : `https://app.growsurf.com/dashboard/campaign/${ config . GROWSURF_CAMPAIGN_ID } /participant/${ growRes . id } ` ,
420420 } ) ;
421- }
421+ } else notifyKirilAndNick ( growRes ) ;
422422 }
423423 // finally, clear the cookie
424424 res . cookie ( config . GROWSURF_COOKIE , '' , {
0 commit comments