Move the equipment into the Jump.

This commit is contained in:
2026-05-06 21:30:35 +02:00
parent 855d85ef67
commit 7227f05fc0
15 changed files with 282 additions and 228 deletions
@@ -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,
});