Skip to content

Commit

Permalink
added rpc handles
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathamesh483 committed Jan 10, 2025
1 parent b750e76 commit 780774d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions services/rpcandeventservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ class UserService {
const signedUrl = await getSignedUrlForRead(filename);

return { user, profile,signedUrl };

}else if( request.type === "GET_RECRUITER_DETAILS"){

const { userId } = request.data;

const user = await this.repository.getUserbyid(userId);

if(user.userrole !== "recruiter"){
return null;
}

const profile = await this.repository.getRecruiter(userId);

return { user, profile };


}
// else if(request.type === "GET_APPLICANT_RESUMES") {
// const{applications}=request.data;
Expand Down

0 comments on commit 780774d

Please sign in to comment.