mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-12 22:50:06 +00:00
feat(create-context): add the ability to modify attributes
This commit is contained in:
@@ -323,7 +323,11 @@ export class SASViyaApiClient {
|
||||
const updateContextRequest: RequestInit = {
|
||||
method: 'PUT',
|
||||
headers,
|
||||
body: JSON.stringify({ ...context, ...updatedContext })
|
||||
body: JSON.stringify({
|
||||
...context,
|
||||
...updatedContext,
|
||||
attributes: { ...context.attributes, ...updatedContext.attributes }
|
||||
})
|
||||
}
|
||||
|
||||
return await this.request<Context>(
|
||||
|
||||
Reference in New Issue
Block a user