File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -127,15 +127,19 @@ async function main() {
127127 process . exit ( 1 ) ;
128128 }
129129
130- console . log ( '🚀 Starting marketplace update...' ) ;
131-
132- // update marketplace
133- await fetch ( `${ process . env . MARKETPLACE_BASE_URL } /api/admin/refresh` , {
134- method : 'GET' ,
135- headers : {
136- Authorization : process . env . MARKETPLACE_AUTH_TOKEN
137- }
138- } ) ;
130+ try {
131+ console . log ( '🚀 Starting marketplace update...' ) ;
132+ await fetch ( `${ process . env . MARKETPLACE_BASE_URL } /api/admin/refresh` , {
133+ method : 'GET' ,
134+ headers : {
135+ Authorization : process . env . MARKETPLACE_AUTH_TOKEN
136+ }
137+ } ) ;
138+ console . log ( '✅ Marketplace updated successfully' ) ;
139+ } catch ( error ) {
140+ console . error ( '❌ Marketplace update failed:' ) ;
141+ console . error ( error ) ;
142+ }
139143}
140144
141145if ( import . meta. main ) {
You can’t perform that action at this time.
0 commit comments