refactor analytics module

This commit is contained in:
2025-12-21 22:51:08 +01:00
parent 9bd2e630e6
commit 0f60200917
14 changed files with 133 additions and 75 deletions

View File

@@ -42,6 +42,7 @@ export class AuthService {
return null;
}
// TODO no mapping in here, must use presenter
const authenticatedUserDTO = this.mapUserToAuthenticatedUserDTO(User.fromStored(user));
const apiSession = this.buildAuthSessionDTO(coreSession.token, authenticatedUserDTO);
@@ -113,7 +114,7 @@ export class AuthService {
this.logger.debug('[AuthService] Attempting logout.');
const commandResultPresenter = new CommandResultPresenter();
const result = await this.logoutUseCase.execute();
const result = await this.logoutUseCase.execute(); // TODO
if (result.isErr()) {
const error = result.unwrapErr();