auth => clean archi

This commit is contained in:
styve Lioumba
2025-11-19 16:25:32 +01:00
parent c8d0f96b31
commit dd77e3d023
47 changed files with 696 additions and 545 deletions

View File

@@ -11,14 +11,12 @@ import { CreateProjectDto } from '@app/domain/projects/dto/create-project.dto';
import { ErrorResponse } from '@app/domain/error-response.util';
import { ActionType } from '@app/domain/action-type.util';
import { LoaderAction } from '@app/domain/loader-action.util';
import { AuthService } from '@app/core/services/authentication/auth.service';
@Injectable({
providedIn: 'root',
})
export class ProjectFacade {
private readonly projectRepo = inject(PROJECT_REPOSITORY_TOKEN);
private readonly authService = inject(AuthService);
private readonly createUseCase = new CreateProjectUseCase(this.projectRepo);
private readonly listUseCase = new ListProjectUseCase(this.projectRepo);
@@ -86,7 +84,6 @@ export class ProjectFacade {
this.UpdateUseCase.execute(userId, data).subscribe({
next: (project: Project) => {
this.project.set(this.projectPresenter.toViewModel(project));
this.authService.updateUser();
this.handleError(ActionType.UPDATE, false, null, false);
},
error: (err) => {