File tree 1 file changed +2
-2
lines changed
scripts/job-rcrm-status-migration-v2
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ async function backup () {
16
16
fs . rmdirSync ( filePath , { recursive : true } )
17
17
}
18
18
fs . mkdirSync ( filePath )
19
- let { body : jobs } = await request . get ( 'https://www.topcoder.com/api/recruit/jobs?job_status=1' )
19
+ let { body : jobs } = await request . get ( 'https://www.topcoder-dev .com/api/recruit/jobs?job_status=1' )
20
20
jobs = jobs . map ( ( item ) => item . slug )
21
21
const backupJobs = [ ]
22
22
if ( jobs && jobs . length > 0 ) {
@@ -25,7 +25,7 @@ async function backup () {
25
25
where : { rcrmStatus : 'Open' }
26
26
} )
27
27
for ( const j of jbsInDb ) {
28
- if ( jobs . indexOf ( j . externalId ) < 0 ) {
28
+ if ( j . externalId && jobs . indexOf ( j . externalId ) < 0 ) {
29
29
// The open job exists in taas but not showing up on Community-App
30
30
backupJobs . push ( j . externalId )
31
31
}
You can’t perform that action at this time.
0 commit comments