Skip to content

Commit

Permalink
feat: Send X-Asset-Ingested header for update value and create resource
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed May 21, 2024
1 parent 626e88a commit 07d9099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/v2/resource/resources-endpoint-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class ResourcesEndpointV2 extends Endpoint {

});

return this.httpPost("", res).pipe(
return this.httpPost("", res, "json", {"X-Asset-Ingested": "true"}).pipe(
mergeMap((ajaxResponse: AjaxResponse) => {
// console.log(JSON.stringify(ajaxResponse.response));
// TODO: @rosenth Adapt context object
Expand Down
2 changes: 1 addition & 1 deletion src/api/v2/values/values-endpoint-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class ValuesEndpointV2 extends Endpoint {

res[resource.property] = val;

return this.httpPut("", res).pipe(
return this.httpPut("", res, "json", {"X-Asset-Ingested": "true"}).pipe(
mergeMap((ajaxResponse: AjaxResponse) => {
// console.log(JSON.stringify(ajaxResponse.response));
// TODO: @rosenth Adapt context object
Expand Down

0 comments on commit 07d9099

Please sign in to comment.