Add email and project validation before inviting user

This commit is contained in:
faris Aljohari
2024-12-25 19:58:44 -06:00
parent 77d2e18b36
commit 6aff5e54e9

View File

@ -46,6 +46,7 @@ export class InviteUserService {
try {
const userRepo = queryRunner.manager.getRepository(UserEntity);
await this.checkEmailAndProject({ email });
const user = await userRepo.findOne({
where: {