Skip to content

Commit

Permalink
DOP-3999 fixed if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Sep 7, 2023
1 parent 4f7487c commit 78e1f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export abstract class JobHandler {
// completed after the Gatsby Cloud build via the SnootyBuildComplete lambda.
const { _id: jobId, user } = this.currJob;
const gatsbyCloudSiteId = await this._repoEntitlementsRepo.getGatsbySiteIdByGithubUsername(user);
if (!this.currJob.payload.isNextGen && gatsbyCloudSiteId && this.currJob.payload.jobType === 'githubPush') {
if (this.currJob.payload.isNextGen && gatsbyCloudSiteId && this.currJob.payload.jobType === 'githubPush') {
this.logger.info(
jobId,
`User ${user} has a Gatsby Cloud site. The Autobuilder will not mark the build as completed right now.`
Expand Down

0 comments on commit 78e1f13

Please sign in to comment.