This commit is contained in:
hannathkadher
2025-02-15 11:33:23 +04:00

View File

@ -30,7 +30,7 @@ export class UserService {
where: {
uuid: userUuid,
},
relations: ['region', 'timezone', 'roleType'],
relations: ['region', 'timezone', 'roleType', 'project'],
});
if (!user) {
throw new BadRequestException('Invalid room UUID');
@ -52,6 +52,7 @@ export class UserService {
hasAcceptedAppAgreement: user?.hasAcceptedAppAgreement,
appAgreementAcceptedAt: user?.appAgreementAcceptedAt,
role: user?.roleType,
project: user?.project,
};
} catch (err) {
if (err instanceof BadRequestException) {