Skip to content

Commit

Permalink
FIX: project update on a unexisting project
Browse files Browse the repository at this point in the history
  • Loading branch information
juliecoust committed Jul 9, 2024
1 parent eef2f7f commit 52500e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/use-cases/project/update-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UpdateProject implements UpdateProjectUseCase {
// Check if current_user is deleted or invalid
await this.userRepository.ensureUserCanBeUsed(current_user.user_id);
// Ensure the project to delete exists
this.ensureProjectExists(public_project_to_update);
await this.ensureProjectExists(public_project_to_update);
// Ensure user has the privilege to update the project
await this.ensureUserCanUpdate(current_user, public_project_to_update);
// Prepare the project update model
Expand Down

0 comments on commit 52500e3

Please sign in to comment.