mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:44:54 +00:00
Add email and project validation before inviting user
This commit is contained in:
@ -46,6 +46,7 @@ export class InviteUserService {
|
||||
|
||||
try {
|
||||
const userRepo = queryRunner.manager.getRepository(UserEntity);
|
||||
await this.checkEmailAndProject({ email });
|
||||
|
||||
const user = await userRepo.findOne({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user