File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,11 @@ const rsBrowsersCollectionEndpoint = `${process.env.SERVER}/buckets/main-workspa
5555const rsBrowsersRecordsEndpoint = `${ rsBrowsersCollectionEndpoint } /records` ;
5656const isDryRun = process . env . DRY_RUN == "1" ;
5757
58-
59- if ( process . env . AUTHORIZATION . includes ( "Bearer" ) ) {
60- const headers = {
61- "Content-Type" : "application/json" ,
62- Authorization : process . env . AUTHORIZATION ,
63- }
64- } else {
65- const headers = {
66- "Content-Type" : "application/json" ,
67- Authorization : `Basic ${ btoa ( $ { process . env . AUTHORIZATION } ) } ` ,
68- } ;
58+ const headers = {
59+ "Content-Type" : "application/json" ,
60+ Authorization : process . env . AUTHORIZATION . startsWith ( "Bearer " )
61+ ? process . env . AUTHORIZATION
62+ : `Basic ${ btoa ( process . env . AUTHORIZATION ) } ` ,
6963}
7064
7165update ( )
You can’t perform that action at this time.
0 commit comments