Merge pull request #1041 from josepfo/feat/manual-entry-populate-existing-requirement

feat: enable custom entries and custom information requirements
This commit is contained in:
Rafael Taranto 2022-01-18 19:15:14 +00:00 committed by GitHub
commit abcce7ff06
11 changed files with 525 additions and 192 deletions

View file

@ -21,7 +21,7 @@ const resolvers = {
return customers.updateCustomer(customerId, customerInput, token)
},
addCustomField: (...[, { customerId, label, value }]) => customers.addCustomField(customerId, label, value),
saveCustomField: (...[, { customerId, fieldId, newValue }]) => customers.saveCustomField(customerId, fieldId, newValue),
saveCustomField: (...[, { customerId, fieldId, value }]) => customers.saveCustomField(customerId, fieldId, value),
removeCustomField: (...[, [ { customerId, fieldId } ]]) => customers.removeCustomField(customerId, fieldId),
editCustomer: async (root, { customerId, customerEdit }, context) => {
const token = authentication.getToken(context)