MemberSpace.updateMemberMetadata
An Asynchronous function (returns a Promise). It merges the data it gets as a parameter with the data stored in our servers as the member's metadata, and updates the stored information with the result.
const dataToSet = {
key1: 'value1',
key2: {
key3: 'value3'
}
};
// Using async-await
const fn = async () => {
await MemberSpace.updateMemberMetadata(dataToSet);
// continue custom code
};
// Using Promise chaining
MemberSpace
.updateMemberMetadata(dataToSet)
.then(() => {
// continue custom code
});
Last updated
Was this helpful?