From c11687b4773ca9dbabf17e154c4533408ea93002 Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Wed, 15 Nov 2023 15:18:47 -0500 Subject: [PATCH] repoDir correct --- src/job/jobHandler.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index 9a7e44ecf..f89c07a73 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -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'; @@ -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,