From 736b822bd9466b2daeae9e8a73865975d61d8a57 Mon Sep 17 00:00:00 2001 From: siiky Date: Thu, 18 Jul 2024 12:35:46 +0100 Subject: [PATCH] refactor: drop useless `.then()` --- lib/customers.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/customers.js b/lib/customers.js index 62ef15a3..bceada84 100644 --- a/lib/customers.js +++ b/lib/customers.js @@ -755,7 +755,6 @@ function updateIdCardData (patch, id) { .then(patch => { const imagesData = _.get('photos', patch) return updatePhotos(imagesData, id, directory) - .then(newPatch => newPatch) .catch(err => logger.error('while saving the image: ', err)) }) }