website refactor
This commit is contained in:
@@ -38,6 +38,7 @@ import {
|
||||
LOGGER_TOKEN,
|
||||
UPDATE_DRIVER_PROFILE_USE_CASE_TOKEN,
|
||||
} from './DriverTokens';
|
||||
|
||||
@Injectable()
|
||||
export class DriverService {
|
||||
constructor(
|
||||
@@ -86,7 +87,7 @@ export class DriverService {
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.unwrapErr().details.message);
|
||||
}
|
||||
this.driverStatsPresenter!.present(result.unwrap());
|
||||
await this.driverStatsPresenter!.present(result.unwrap());
|
||||
return this.driverStatsPresenter!.getResponseModel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user