style: format code for better readability and consistency
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / Docker backend validation (pull_request) Successful in 17s
CI / Docker frontend validation (pull_request) Successful in 48s
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 36s
CI / test-build (pull_request) Successful in 1m1s

This commit is contained in:
Jan-Marlon Leibl 2025-05-07 14:57:24 +02:00
commit c7f26c4df3
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
9 changed files with 175 additions and 135 deletions

View file

@ -10,14 +10,12 @@ export class LootboxService {
private http = inject(HttpClient);
getAllLootBoxes(): Observable<LootBox[]> {
return this.http
.get<LootBox[]>('/backend/lootboxes', { responseType: 'json' })
.pipe(
catchError((error) => {
console.error('Get lootboxes error:', error);
throw error;
})
);
return this.http.get<LootBox[]>('/backend/lootboxes', { responseType: 'json' }).pipe(
catchError((error) => {
console.error('Get lootboxes error:', error);
throw error;
})
);
}
purchaseLootBox(lootBoxId: number): Observable<Reward> {
@ -30,4 +28,4 @@ export class LootboxService {
})
);
}
}
}