website refactor
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { injectable, unmanaged } from 'inversify';
|
||||
import { ProtestsApiClient } from '@/lib/api/protests/ProtestsApiClient';
|
||||
import type { ApplyPenaltyCommandDTO } from '@/lib/types/generated/ApplyPenaltyCommandDTO';
|
||||
import type { RequestProtestDefenseCommandDTO } from '@/lib/types/generated/RequestProtestDefenseCommandDTO';
|
||||
@@ -18,10 +19,11 @@ import { ProtestDriverViewModel } from '@/lib/view-models/ProtestDriverViewModel
|
||||
* All client-side presentation logic must be handled by hooks/components.
|
||||
* @server-safe
|
||||
*/
|
||||
@injectable()
|
||||
export class ProtestService implements Service {
|
||||
private readonly apiClient: ProtestsApiClient;
|
||||
|
||||
constructor(apiClient?: ProtestsApiClient) {
|
||||
constructor(@unmanaged() apiClient?: ProtestsApiClient) {
|
||||
if (apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user