website refactor
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { injectable, unmanaged } from 'inversify';
|
||||
import { Result } from '@/lib/contracts/Result';
|
||||
import { Service, DomainError } from '@/lib/contracts/services/Service';
|
||||
import { LeagueWalletApiDto } from '@/lib/types/tbd/LeagueWalletApiDto';
|
||||
import { WalletsApiClient } from '@/lib/api/wallets/WalletsApiClient';
|
||||
|
||||
@injectable()
|
||||
export class LeagueWalletService implements Service {
|
||||
constructor(private readonly apiClient?: WalletsApiClient) {}
|
||||
constructor(@unmanaged() private readonly apiClient?: WalletsApiClient) {}
|
||||
|
||||
async getWalletForLeague(leagueId: string): Promise<LeagueWalletApiDto> {
|
||||
if (this.apiClient) {
|
||||
|
||||
Reference in New Issue
Block a user