Add connected user when updating gear

This commit is contained in:
2026-05-05 23:15:13 +02:00
parent dcd9ae355c
commit 76ef368700
10 changed files with 1897 additions and 1944 deletions
@@ -65,4 +65,33 @@ export class GearService extends BaseService {
public getFromCache(): Observable<Array<GearResp>> {
return this.serviceCacheApi.getByKey<Array<GearResp>>(CacheApiKey.Gear);
}
public updateGear(
id: number,
name: string,
manufacturer: string,
minSize: number,
maxSize: number,
aad: string,
mainCanopy: string,
reserveCanopy: string,
equipment: string,
) {
const gearData = {
id: id,
name: name,
manufacturer: manufacturer,
minSize: minSize,
maxSize: maxSize,
aad: aad,
mainCanopy: mainCanopy,
reserveCanopy: reserveCanopy,
equipment: equipment,
};
const bodyUpdatedGear = new GearReq(gearData);
return this.http.put(`${this.apiUrl}/Gear/${id}`, bodyUpdatedGear, {
headers: this.headers,
});
}
}