Merge pull request #1830 from RafaelTaranto/chore/update-react-deps
LAM-1395 Chore/update react deps
This commit is contained in:
commit
aa428310f4
86 changed files with 1717 additions and 1595 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue