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>
Этот коммит содержится в:
Scott Bishel
2025-01-24 10:28:19 -07:00
коммит произвёл GitHub
родитель 0cca57b6df
Коммит 49948891ce
5 изменённых файлов: 11 добавлений и 12 удалений

Просмотреть файл

@@ -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)},
);
};