1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-04-12 08:53:14 +00:00

feat: (viya) apply properties to newly created files

This commit is contained in:
Trevor Moody
2025-11-22 17:56:50 +00:00
parent 87b60a4a21
commit c42a20a8ee
2 changed files with 153 additions and 11 deletions

View File

@@ -273,9 +273,13 @@ export class RequestClient implements HttpClient {
public async patch<T>(
url: string,
data: any = {},
accessToken?: string
accessToken?: string,
overrideHeaders: { [key: string]: string | number } = {}
): Promise<{ result: T; etag: string }> {
const headers = this.getHeaders(accessToken, 'application/json')
const headers = {
...this.getHeaders(accessToken, 'application/json'),
...overrideHeaders
}
return this.httpClient
.patch<T>(url, data, { headers, withXSRFToken: true })