Skip to content

Commit

Permalink
DOP-4414 playing with prefixes, all changes in this commit should not…
Browse files Browse the repository at this point in the history
… persist
  • Loading branch information
anabellabuckvar committed Apr 8, 2024
1 parent 7fddfaa commit 9867c1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ export abstract class JobHandler {
@throwIfJobInterupted()
private async constructPrefix(): Promise<void> {
const server_user = this._config.get<string>('GATSBY_PARSER_USER');
const pathPrefix = await this.getPathPrefix();
const prePrefix = this.getPathPrefix();
const pathPrefix = '';
// TODO: Can empty string check be removed?
if (pathPrefix || pathPrefix === '') {
this.currJob.payload.pathPrefix = pathPrefix;
const mutPrefix = pathPrefix.split(`/${server_user}`)[0];
this.currJob.payload.mutPrefix = mutPrefix;
this.currJob.payload.mutPrefix = prePrefix + '/slackDeploy';
this._logger.save(this.currJob._id, `${mutPrefix}, prePrefix: ${prePrefix}, server user: ${server_user}`);
}
}

Expand Down

0 comments on commit 9867c1a

Please sign in to comment.