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