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 committed 2026-03-29 03:31:44 +05:30
1 parent 3fa6a23800
commit e1990a41e0
2 files changed
+59 -9

No files matched your search

+18
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,