Skip to content

Commit

Permalink
fix typecheck & format
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 2, 2024
1 parent 680800e commit 23797a4
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 463 deletions.
4 changes: 2 additions & 2 deletions apps/event-worker/src/job-sync/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import { JobStatus } from "@ctrlplane/validators/jobs";
import { convertStatus, getInstallationOctokit } from "../github-utils.js";

export const syncGithubJob = async (je: Job) => {
if (je.externalRunId == null) {
if (je.externalId == null) {
await db.update(job).set({
status: JobStatus.ExternalRunNotFound,
message: `Run ID not found for job ${je.id}`,
});
return;
}

const runId = Number(je.externalRunId);
const runId = Number(je.externalId);

const config = je.jobAgentConfig;
const parsed = configSchema.safeParse(config);
Expand Down
Loading

0 comments on commit 23797a4

Please sign in to comment.