refactor analytics module
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user