@@ -241,7 +241,7 @@ async function prepSummaryMessage(
241241 failed = false
242242) : Promise < string > {
243243 const urls = extractUrlFromMessage ( fullDocument ) ;
244- let mms_urls = [ '' , '' ] ;
244+ let mms_urls = [ null , null ] ;
245245 // mms-docs needs special handling as it builds two sites (cloudmanager & ops manager)
246246 // so we need to extract both URLs
247247 if ( repoName === 'mms-docs' ) {
@@ -305,10 +305,10 @@ async function NotifyBuildProgress(jobId: string): Promise<any> {
305305 const jobRepository = new JobRepository ( db , c , consoleLogger ) ;
306306 // TODO: Make fullDocument be of type Job, validate existence
307307 const fullDocument = await jobRepository . getJobById ( jobId ) ;
308- if ( ! fullDocument ) {
309- consoleLogger . error ( 'Cannot find job in db.' , '' ) ;
310- return ;
311- }
308+ // if (!fullDocument) {
309+ // consoleLogger.error('Cannot find job in db.', '');
310+ // return;
311+ // }
312312 const jobTitle = fullDocument . title ;
313313 const username = fullDocument . user ;
314314 const repoEntitlementRepository = new RepoEntitlementsRepository ( db , c , consoleLogger ) ;
@@ -360,10 +360,10 @@ async function SubmitArchiveJob(jobId: string) {
360360 branches : new BranchRepository ( db , c , consoleLogger ) ,
361361 } ;
362362 const job = await models . jobs . getJobById ( jobId ) ;
363- if ( ! job ) {
364- consoleLogger . error ( 'Cannot find job in db' , JSON . stringify ( { jobId } ) ) ;
365- return ;
366- }
363+ // if (!job) {
364+ // consoleLogger.error('Cannot find job in db', JSON.stringify({ jobId }));
365+ // return;
366+ // }
367367 const repo = await models . branches . getRepo ( job . payload . repoName ) ;
368368
369369 /* NOTE
0 commit comments