(userId: string)
| 35 | |
| 36 | // Function to get resume data for a user |
| 37 | export 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 |
| 50 | export async function deleteResume(userId: string): Promise<boolean> { |
no outgoing calls
no test coverage detected