File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,13 +60,9 @@ const client = createClient(
6060 process . env . SUPABASE_SERVICE_ROLE_KEY ! ,
6161) ;
6262
63- console . log ( 'Adding default plugin' ) ;
63+ console . log ( 'Upserting plugin' ) ;
6464const defaultPlugin = await client . from ( 'registry_plugins' ) . upsert ( {
6565 name : 'default' ,
66- display_name : 'Default Plugin' ,
67- homepage : 'https://codifycli.com' ,
68- repository_url : 'https://github.com/codifycli/default-plugin' ,
69- license : 'ISC' ,
7066} , { onConflict : 'name' } )
7167 . select ( )
7268 . throwOnError ( ) ;
@@ -100,12 +96,10 @@ async function uploadResources(prerelease: boolean) {
10096
10197 const metadataByType = new Map ( Metadata . map ( ( m ) => [ m . type , m ] ) ) ;
10298
103- const { id : versionId } = versionRow . data ! [ 0 ] ;
104-
10599 if ( ! prerelease ) {
106100 console . log ( 'Updating latest version pointer' ) ;
107101 await client . from ( 'registry_plugins' )
108- . update ( { latest_version : version , latest_version_id : versionId } )
102+ . update ( { latest_version : version } )
109103 . eq ( 'id' , pluginId )
110104 . throwOnError ( ) ;
111105 }
@@ -156,4 +150,4 @@ async function uploadResources(prerelease: boolean) {
156150 . upsert ( parameters , { onConflict : 'name,resource_id,prerelease' } )
157151 . throwOnError ( ) ;
158152 }
159- }
153+ }
You can’t perform that action at this time.
0 commit comments