Skip to content

Commit

Permalink
repoDir correct
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Nov 15, 2023
1 parent 8bd6ade commit c11687b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path';
import axios, { AxiosResponse } from 'axios';
import { Payload, Job, JobStatus } from '../entities/job';
import { JobRepository } from '../repositories/jobRepository';
Expand Down Expand Up @@ -319,11 +320,13 @@ export abstract class JobHandler {
if (key === 'next-gen-parse') {
this._logger.save(this.currJob._id, `in parse command!!! `);
this._logger.save(this.currJob._id, `repoDir: "repos/${getDirectory(this.currJob)}" `);
this._logger.save(this.currJob._id, `commitHash: ${this.currJob.payload.newHead ?? ''}`);
this._logger.save(this.currJob._id, `process.cwd!! : ${process.cwd()}`);
const repoDir = path.resolve(process.cwd(), `repos/${getDirectory(this.currJob)}`);

this._logger.save(this.currJob._id, `repoDir now : ${repoDir}`);
try {
const snootyParseRes = await nextGenParse({
repoDir: `repos/${getDirectory(this.currJob)}`,
repoDir,
commitHash: this.currJob.payload.newHead ?? '',
logger: this._logger,
id: this.currJob._id,
Expand Down

0 comments on commit c11687b

Please sign in to comment.