added project endpoints

This commit is contained in:
hannathkadher
2024-12-09 13:26:17 +04:00
parent 5b0494b415
commit 1e5b61e3e0
6 changed files with 106 additions and 2 deletions

View File

@ -180,7 +180,6 @@ export class ProjectService {
}
async validate(name: string): Promise<boolean> {
const project = await this.projectRepository.findOne({ where: { name } });
return !project;
return await this.projectRepository.exists({ where: { name } });
}
}