mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:44:55 +00:00
added project endpoints
This commit is contained in:
@ -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 } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user