fix: prevent the block action on server-side
This commit is contained in:
parent
f394606821
commit
9ade056a53
1 changed files with 2 additions and 1 deletions
|
|
@ -420,7 +420,8 @@ const resolvers = {
|
|||
resetAccounts: (...[, { schemaVersion }]) => settingsLoader.resetAccounts(schemaVersion),
|
||||
setCustomer: (root, args, context, info) => {
|
||||
const token = context.req.cookies && context.req.cookies.token
|
||||
return customers.updateCustomer(args.customerId, args.customerInput, token)
|
||||
if (args.customerId !== anonymous.uuid) return customers.updateCustomer(args.customerId, args.customerInput, token)
|
||||
return customers.getCustomerById(args.customerId)
|
||||
},
|
||||
saveConfig: (...[, { config }]) => settingsLoader.saveConfig(config)
|
||||
.then(it => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue