Skip to content

Commit e0fb9c6

Browse files
Merge pull request #669 from topcoder-platform/rcrm-migration-2
Exclude the null external Id
2 parents 5560c07 + aebba9c commit e0fb9c6

File tree

1 file changed

+1
-1
lines changed
  • scripts/job-rcrm-status-migration-v2

1 file changed

+1
-1
lines changed

scripts/job-rcrm-status-migration-v2/backup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function backup () {
2525
where: { rcrmStatus: 'Open' }
2626
})
2727
for (const j of jbsInDb) {
28-
if (jobs.indexOf(j.externalId) < 0) {
28+
if (j.externalId && jobs.indexOf(j.externalId) < 0) {
2929
// The open job exists in taas but not showing up on Community-App
3030
backupJobs.push(j.externalId)
3131
}

0 commit comments

Comments
 (0)