refactor: drop useless .then()

This commit is contained in:
siiky 2024-07-18 12:35:46 +01:00
parent eafefee06a
commit 736b822bd9

View file

@ -755,7 +755,6 @@ function updateIdCardData (patch, id) {
.then(patch => { .then(patch => {
const imagesData = _.get('photos', patch) const imagesData = _.get('photos', patch)
return updatePhotos(imagesData, id, directory) return updatePhotos(imagesData, id, directory)
.then(newPatch => newPatch)
.catch(err => logger.error('while saving the image: ', err)) .catch(err => logger.error('while saving the image: ', err))
}) })
} }