Skip to content

Commit

Permalink
updaed the rpc handle to get user details
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathamesh483 committed Jan 5, 2025
1 parent ac88d88 commit b750e76
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion services/rpcandeventservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,34 @@ class UserService {
return null;
}

return { user, profile };
const filename = `${userId}.pdf`;
const signedUrl = await getSignedUrlForRead(filename);

return { user, profile,signedUrl };
}
// else if(request.type === "GET_APPLICANT_RESUMES") {
// const{applications}=request.data;

// const results = await Promise.all(
// applications.map(async (application) => {
// const { applicant_user_id, resume_link } = application;

// // Generate signed URL only if resume_link exists
// const resumeSignedUrl = resume_link? await getSignedUrlForRead(`${applicant_user_id}.pdf`): null;

// // Return the application data with the additional field
// return {
// ...application,
// resumeSignedUrl,
// };
// })
// );

// return results;

// }


}

async handleEvent(event) {
Expand Down

0 comments on commit b750e76

Please sign in to comment.