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:
commit
325430986a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue