add client relation btw user and client

This commit is contained in:
faris Aljohari
2025-03-27 01:55:26 +03:00
parent cbd3f5028b
commit cf8cf08bdc
5 changed files with 27 additions and 13 deletions

View File

@ -34,7 +34,10 @@ export class UserAuthService {
private readonly configService: ConfigService,
) {}
async signUp(userSignUpDto: UserSignUpDto): Promise<UserEntity> {
async signUp(
userSignUpDto: UserSignUpDto,
clientUuid?: string,
): Promise<UserEntity> {
const findUser = await this.findUser(userSignUpDto.email);
if (findUser) {
@ -63,6 +66,7 @@ export class UserAuthService {
hasAcceptedAppAgreement,
password: hashedPassword,
roleType: { uuid: spaceMemberRole.uuid },
client: { uuid: clientUuid },
region: regionUuid
? {
uuid: regionUuid,