Merge pull request #1413 from chaotixkilla/fix-stored-image-path-8.1

[Release 8.1] Fix path where images are stored
This commit is contained in:
Rafael Taranto 2022-10-21 15:21:20 +01:00 committed by GitHub
commit 325430986a

View file

@ -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()