chore: Update deleteCustomAttribute method in SDK (#3334)

This commit is contained in:
Muhsin Keloth
2021-11-15 14:56:35 +05:30
committed by GitHub
parent c2db8a1fd7
commit a2764e5c1d
12 changed files with 138 additions and 30 deletions

View File

@@ -43,14 +43,21 @@ export const actions = {
refreshActionCableConnector(pubsubToken);
} catch (error) {
// Ingore error
// Ignore error
}
},
setCustomAttributes: async (_, customAttributes = {}) => {
try {
await ContactsAPI.setCustomAttibutes(customAttributes);
await ContactsAPI.setCustomAttributes(customAttributes);
} catch (error) {
// Ingore error
// Ignore error
}
},
deleteCustomAttribute: async (_, customAttribute) => {
try {
await ContactsAPI.deleteCustomAttribute(customAttribute);
} catch (error) {
// Ignore error
}
},
};