MM-62550- trim value and create batch updates (#29895)
* trim value and create batch updates * update test * update for review comments --------- Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0cca57b6df
Коммит
49948891ce
@@ -2103,13 +2103,10 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
updateCustomProfileAttributeValues = (attributeID: string, attributeValue: string) => {
|
||||
const obj: { [key: string]: string } = {};
|
||||
obj[attributeID] = attributeValue;
|
||||
|
||||
updateCustomProfileAttributeValues = (attributeValues: Record<string, string>) => {
|
||||
return this.doFetch<Record<string, string>>(
|
||||
`${this.getCustomProfileAttributeValuesRoute()}`,
|
||||
{method: 'PATCH', body: JSON.stringify(obj)},
|
||||
{method: 'PATCH', body: JSON.stringify(attributeValues)},
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user