Skip to content

Commit 180897f

Browse files
committed
refactor(dashboard-server): remove unused getResumeById function
1 parent 3a172e6 commit 180897f

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

lib/database/dashboard-server.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,3 @@ export async function getDashboardData() {
5555
}
5656
}
5757

58-
export async function getResumeById(id: string) {
59-
const supabase = await createServerSupabaseClient()
60-
61-
const { data: { user }, error: authError } = await supabase.auth.getUser()
62-
if (authError || !user) return null
63-
64-
const { data: resume, error } = await supabase
65-
.from('resumes')
66-
.select('*')
67-
.eq('id', id)
68-
.eq('user_id', user.id)
69-
.single()
70-
71-
if (error || !resume) return null
72-
73-
return {
74-
id: resume.id,
75-
title: resume.title,
76-
data: {
77-
personalInfo: resume.personal_info,
78-
summary: resume.summary,
79-
experience: resume.experience,
80-
education: resume.education,
81-
skills: resume.skills,
82-
certifications: resume.certifications,
83-
projects: resume.projects || [],
84-
sectionOrder: resume.section_order,
85-
styleSettings: resume.style_settings
86-
}
87-
}
88-
}

0 commit comments

Comments
 (0)