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
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:
parent
90368dce7c
commit
c7f26c4df3
9 changed files with 175 additions and 135 deletions
|
@ -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 {
|
|||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue