MCPcopy
hub / github.com/Nutlope/self.so / getResume

Function getResume

lib/server/redisActions.ts:37–47  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

35
36// Function to get resume data for a user
37export async function getResume(userId: string): Promise<Resume | undefined> {
38 try {
39 const resume = await upstashRedis.get<Resume>(
40 `${REDIS_KEYS.RESUME_PREFIX}${userId}`,
41 );
42 return resume || undefined;
43 } catch (error) {
44 console.error('Error retrieving resume:', error);
45 throw new Error('Failed to retrieve resume');
46 }
47}
48
49// Function to store resume data for a user
50export async function deleteResume(userId: string): Promise<boolean> {

Callers 5

getCachedResumeFunction · 0.90
GETFunction · 0.90
PdfProcessingFunction · 0.90
LLMProcessingFunction · 0.90
getUserDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected