@@ -50,7 +50,7 @@ export const processGitHubChangelog = inngestClient.createFunction(
5050
5151 const { data : page , error : pageError } = await supabaseAdmin
5252 . from ( "pages" )
53- . select ( "id, user_id, url_slug, title" )
53+ . select ( "id, user_id, title" )
5454 . eq ( "id" , installation . page_id )
5555 . single ( ) ;
5656
@@ -117,7 +117,7 @@ export const processGitHubChangelog = inngestClient.createFunction(
117117
118118 if ( existingRef ) {
119119 postId = existingRef . post_id ;
120- dashboardUrl = `${ baseUrl } /page /${ page . url_slug } /posts /${ postId } ` ;
120+ dashboardUrl = `${ baseUrl } /pages /${ page . id } /${ postId } ` ;
121121
122122 const { data : newGenerationCount , error : updateError } =
123123 await supabaseAdmin . rpc ( "update_github_changelog_draft" , {
@@ -133,7 +133,9 @@ export const processGitHubChangelog = inngestClient.createFunction(
133133 postId,
134134 context : { owner, repo, prNumber } ,
135135 } ) ;
136- throw new Error ( `Failed to update changelog draft: ${ updateError . message } ` ) ;
136+ throw new Error (
137+ `Failed to update changelog draft: ${ updateError . message } `
138+ ) ;
137139 }
138140
139141 await createPRComment (
@@ -159,7 +161,7 @@ export const processGitHubChangelog = inngestClient.createFunction(
159161 } ) ;
160162
161163 postId = post . id ;
162- dashboardUrl = `${ baseUrl } /page /${ page . url_slug } /posts /${ postId } ` ;
164+ dashboardUrl = `${ baseUrl } /pages /${ page . id } /${ postId } ` ;
163165
164166 const commentBody = `📝 **Changelog draft created!**\n\n${ changelog . summary } \n\n**[View and edit your draft →](${ dashboardUrl } )**\n\nOnce you're happy with it, you can publish it from the dashboard.` ;
165167
@@ -189,7 +191,9 @@ export const processGitHubChangelog = inngestClient.createFunction(
189191 postId,
190192 context : { owner, repo, prNumber } ,
191193 } ) ;
192- throw new Error ( `Failed to create GitHub post reference: ${ insertError . message } ` ) ;
194+ throw new Error (
195+ `Failed to create GitHub post reference: ${ insertError . message } `
196+ ) ;
193197 }
194198 }
195199
0 commit comments