feat: implement rate limiting for socket events, sanitize error responses, and include agent profile details in user service output

This commit is contained in:
pradeepkumar
2026-03-29 03:31:44 +05:30
parent 3fa6a23800
commit e1990a41e0
2 changed files with 59 additions and 9 deletions

View File

@@ -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,