Move the equipment into the Jump.
This commit is contained in:
@@ -32,7 +32,6 @@ export class GearService extends BaseService {
|
||||
aad: string,
|
||||
mainCanopy: string,
|
||||
reserveCanopy: string,
|
||||
equipment: string,
|
||||
) {
|
||||
const bodyNewGear: GearReq = {
|
||||
id: 0,
|
||||
@@ -43,7 +42,6 @@ export class GearService extends BaseService {
|
||||
aad: aad,
|
||||
mainCanopy: mainCanopy,
|
||||
reserveCanopy: reserveCanopy,
|
||||
equipment: equipment,
|
||||
};
|
||||
|
||||
this.serviceCacheApi.delete(CacheApiKey.Gear);
|
||||
@@ -75,7 +73,6 @@ export class GearService extends BaseService {
|
||||
aad: string,
|
||||
mainCanopy: string,
|
||||
reserveCanopy: string,
|
||||
equipment: string,
|
||||
) {
|
||||
const gearData = {
|
||||
id: id,
|
||||
@@ -86,10 +83,10 @@ export class GearService extends BaseService {
|
||||
aad: aad,
|
||||
mainCanopy: mainCanopy,
|
||||
reserveCanopy: reserveCanopy,
|
||||
equipment: equipment,
|
||||
};
|
||||
const bodyUpdatedGear = new GearReq(gearData);
|
||||
|
||||
this.serviceCacheApi.delete(CacheApiKey.Gear);
|
||||
return this.http.put(`${this.apiUrl}/Gear/${id}`, bodyUpdatedGear, {
|
||||
headers: this.headers,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user