Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 7a42511

Browse files
committed
revert jobs.ts changes to see if that helps
1 parent 3f40174 commit 7a42511

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

api/controllers/v1/jobs.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

serverless.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ provider:
2222
region: us-east-2
2323
package:
2424
patterns:
25-
api/config/**
26-
exclude:
27-
- node_modules/**
28-
- venv/**
25+
api/config/*
2926
custom:
3027
serverlessPluginTypescript:
3128
tsConfigFileLocation: '.api/tsconfig.build.json'

0 commit comments

Comments
 (0)