From b275e41899bc15d682dad53558dc1636af5f5542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Thu, 13 Oct 2022 22:44:35 +0100 Subject: [PATCH] fix: stored images path to use environment variables --- lib/customers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customers.js b/lib/customers.js index f2d51a72..e855070d 100644 --- a/lib/customers.js +++ b/lib/customers.js @@ -262,7 +262,7 @@ function deleteEditedData (id, data) { */ async function updateEditedPhoto (id, photo, photoType) { const newPatch = {} - const baseDir = photoType === 'frontCamera' ? frontCameraBaseDir : idPhotoCardBasedir + const baseDir = photoType === 'frontCamera' ? FRONT_CAMERA_DIR : ID_PHOTO_CARD_DIR const { createReadStream, filename } = photo const stream = createReadStream()