Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Dec 3, 2024
1 parent 5cead0b commit ec7fc59
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/webservice/src/app/api/github/webhook/workflow/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ const maybeRetryJob = async (job: schema.Job) => {
return dispatchJobsForNewerRelease(latestRelease.id);

const releaseJobTriggers = await db
.select({
count: count(),
})
.select({ count: count() })
.from(schema.releaseJobTrigger)
.where(eq(schema.releaseJobTrigger.releaseId, jobInfo.release.id))
.then(takeFirst);
Expand All @@ -136,11 +134,11 @@ const maybeRetryJob = async (job: schema.Job) => {
.releaseTriggers(trigger)
.then(cancelOldReleaseJobTriggersOnJobDispatch)
.dispatch()
.then(() => {
.then(() =>
logger.info(
`Retry job for release ${jobInfo.release.id} and resource ${jobInfo.release_job_trigger.resourceId} created and dispatched.`,
);
});
),
);
};

export const handleWorkflowWebhookEvent = async (event: WorkflowRunEvent) => {
Expand Down

0 comments on commit ec7fc59

Please sign in to comment.