Skip to content

Commit

Permalink
Fix restage
Browse files Browse the repository at this point in the history
- fixes #4392
  • Loading branch information
richard-cox committed Jun 24, 2020
1 parent d61a434 commit 6166119
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpHeaders, HttpParams, HttpRequest } from '@angular/common/http';
import { HttpParams, HttpRequest } from '@angular/common/http';

import { pick } from '../../../store/src/helpers/reducer.helper';
import { ActionMergeFunction } from '../../../store/src/types/api.types';
Expand Down Expand Up @@ -164,9 +164,6 @@ export class DeleteApplication extends CFStartAction implements ICFAction {
`apps/${guid}`,
null,
{
headers: new HttpHeaders({
'x-cap-passthrough': 'true'
}),
params: new HttpParams({
fromObject: {
recursive: 'true'
Expand All @@ -192,12 +189,7 @@ export class DeleteApplicationInstance extends CFStartAction
this.options = new HttpRequest(
'DELETE',
`apps/${appGuid}/instances/${index}`,
null,
{
headers: new HttpHeaders({
'x-cap-passthrough': 'true'
})
}
null
);
this.guid = `${appGuid}-${index}`;
}
Expand All @@ -215,11 +207,6 @@ export class RestageApplication extends CFStartAction implements ICFAction {
'POST',
`apps/${guid}/restage`,
null,
{
headers: new HttpHeaders({
'x-cap-passthrough': 'true'
})
}
);
}
actions = [RESTAGE, RESTAGE_SUCCESS, RESTAGE_FAILED];
Expand Down

0 comments on commit 6166119

Please sign in to comment.