diff --git a/src/controllers/fast-track/FastTrackAdminController.ts b/src/controllers/fast-track/FastTrackAdminController.ts index 2b8ab01..74b4c79 100644 --- a/src/controllers/fast-track/FastTrackAdminController.ts +++ b/src/controllers/fast-track/FastTrackAdminController.ts @@ -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);