@@ -241,7 +241,7 @@ async function prepSummaryMessage(
241
241
failed = false
242
242
) : Promise < string > {
243
243
const urls = extractUrlFromMessage ( fullDocument ) ;
244
- let mms_urls = [ '' , '' ] ;
244
+ let mms_urls = [ null , null ] ;
245
245
// mms-docs needs special handling as it builds two sites (cloudmanager & ops manager)
246
246
// so we need to extract both URLs
247
247
if ( repoName === 'mms-docs' ) {
@@ -305,10 +305,10 @@ async function NotifyBuildProgress(jobId: string): Promise<any> {
305
305
const jobRepository = new JobRepository ( db , c , consoleLogger ) ;
306
306
// TODO: Make fullDocument be of type Job, validate existence
307
307
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
+ // }
312
312
const jobTitle = fullDocument . title ;
313
313
const username = fullDocument . user ;
314
314
const repoEntitlementRepository = new RepoEntitlementsRepository ( db , c , consoleLogger ) ;
@@ -360,10 +360,10 @@ async function SubmitArchiveJob(jobId: string) {
360
360
branches : new BranchRepository ( db , c , consoleLogger ) ,
361
361
} ;
362
362
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
+ // }
367
367
const repo = await models . branches . getRepo ( job . payload . repoName ) ;
368
368
369
369
/* NOTE
0 commit comments