refactor: clarify variables and their names
This commit is contained in:
parent
736b822bd9
commit
e0f7357204
1 changed files with 4 additions and 4 deletions
|
|
@ -715,11 +715,11 @@ function updatePhotoCard (id, patch) {
|
|||
|
||||
function updatePhotos (imagesData, id, dir) {
|
||||
return Promise.resolve(imagesData)
|
||||
.then(patch => {
|
||||
if (_.isEmpty(imagesData)) {
|
||||
return patch
|
||||
}
|
||||
.then(imagesData => {
|
||||
const newPatch = {}
|
||||
if (_.isEmpty(imagesData)) {
|
||||
return newPatch
|
||||
}
|
||||
// i.e. ../<lamassu-server-home>/<operatorid>/<customerid>/idcarddata
|
||||
const dirname = path.join(dir)
|
||||
// create the directory tree if needed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue