File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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- }
You can’t perform that action at this time.
0 commit comments