Skip to content

Commit

Permalink
fix incorrect path
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Dec 9, 2023
1 parent 183400e commit e08b9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/fast-track/FastTrackAdminController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function getAttachmentByID(request: Request, response: Response, next: Nex
return;
}

const filePath = path.join(Config.ROOT_PATH, Config.FILE_STORAGE_LOCATION, pendingFastTracks.file_name ?? "");
const filePath = path.join(process.cwd(), Config.FILE_STORAGE_LOCATION, pendingFastTracks.file_name ?? "");
response.sendFile(filePath);
} catch (e) {
next(e);
Expand Down

0 comments on commit e08b9ec

Please sign in to comment.