Skip to content

Commit

Permalink
added PWD path (#240)
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>
  • Loading branch information
tipusinghaw authored Nov 8, 2023
1 parent 03e315f commit a877588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api-gateway/src/issuance/issuance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ export class IssuanceController {
this.logger.log(`newFilename file : ${newFilename}`);
//Testing on dev
fs.rename(
`./uploadedFiles/import/${file.filename}`,
`./uploadedFiles/import/${newFilename}`,
`${process.env.PWD}/uploadedFiles/import/${file.filename}`,
`${process.env.PWD}/uploadedFiles/import/${newFilename}`,
async (err: any) => {
if (err) {
throw err;
Expand All @@ -253,7 +253,7 @@ export class IssuanceController {

const reqPayload: RequestPayload = {
credDefId: credentialDefinitionId,
filePath: `./uploadedFiles/import/${newFilename}`,
filePath: `${process.env.PWD}/uploadedFiles/import/${newFilename}`,
fileName: newFilename
};
this.logger.log(`reqPayload::::::${JSON.stringify(reqPayload)}`);
Expand Down

0 comments on commit a877588

Please sign in to comment.