feat: implement rate limiting for socket events, sanitize error responses, and include agent profile details in user service output
This commit is contained in:
@@ -176,6 +176,24 @@ export class UsersService {
|
||||
country: profile.country,
|
||||
}
|
||||
: null,
|
||||
agentProfile: user.agentProfile
|
||||
? {
|
||||
id: user.agentProfile.id,
|
||||
slug: user.agentProfile.slug,
|
||||
headline: user.agentProfile.headline,
|
||||
bio: user.agentProfile.bio,
|
||||
companyName: user.agentProfile.companyName,
|
||||
licenseNumber: user.agentProfile.licenseNumber,
|
||||
yearsOfExperience: user.agentProfile.yearsOfExperience,
|
||||
isProfileComplete: user.agentProfile.isProfileComplete,
|
||||
profileCompleteness: user.agentProfile.profileCompleteness,
|
||||
agentTypeId: user.agentProfile.agentTypeId,
|
||||
agentType: user.agentProfile.agentType,
|
||||
isVerified: user.agentProfile.isVerified,
|
||||
verificationStatus: user.agentProfile.verificationStatus,
|
||||
verificationNote: user.agentProfile.verificationNote,
|
||||
}
|
||||
: null,
|
||||
};
|
||||
}),
|
||||
total,
|
||||
|
||||
Reference in New Issue
Block a user