Merge pull request #1830 from RafaelTaranto/chore/update-react-deps

LAM-1395 Chore/update react deps
This commit is contained in:
Rafael Taranto 2025-04-22 12:53:42 +01:00 committed by GitHub
commit aa428310f4
86 changed files with 1717 additions and 1595 deletions

View file

@ -34,7 +34,8 @@ const resolvers = {
},
replacePhoto: async (root, { customerId, photoType, newPhoto }, context) => {
const token = authentication.getToken(context)
const photo = await newPhoto
const { file } = newPhoto
const photo = await file
if (!photo) return customers.getCustomerById(customerId)
return customers.updateEditedPhoto(customerId, photo, photoType)
.then(newPatch => customers.edit(customerId, newPatch, token))