fix: stored images path to use environment variables
This commit is contained in:
parent
df5bc81700
commit
b275e41899
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ function deleteEditedData (id, data) {
|
||||||
*/
|
*/
|
||||||
async function updateEditedPhoto (id, photo, photoType) {
|
async function updateEditedPhoto (id, photo, photoType) {
|
||||||
const newPatch = {}
|
const newPatch = {}
|
||||||
const baseDir = photoType === 'frontCamera' ? frontCameraBaseDir : idPhotoCardBasedir
|
const baseDir = photoType === 'frontCamera' ? FRONT_CAMERA_DIR : ID_PHOTO_CARD_DIR
|
||||||
const { createReadStream, filename } = photo
|
const { createReadStream, filename } = photo
|
||||||
const stream = createReadStream()
|
const stream = createReadStream()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue