Skip to content

Commit

Permalink
fix(node): Google Cloud Storage linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
freya authored Sep 13, 2022
1 parent 1e963d8 commit 36ec81f
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ export const objectOperations: INodeProperties[] = [
body.append('file', content, { contentType });

// Set the headers
requestOptions.headers!!['Content-Length'] = body.getLengthSync();
requestOptions.headers!![
if (!requestOptions.headers) requestOptions.headers = {};
requestOptions.headers['Content-Length'] = body.getLengthSync();
requestOptions.headers[
'Content-Type'
] = `multipart/related; boundary=${body.getBoundary()}`;

Expand Down Expand Up @@ -277,8 +278,7 @@ export const objectOperations: INodeProperties[] = [
method: 'GET',
url: '={{"/b/" + $parameter["bucketName"] + "/o/"}}',
returnFullResponse: true,
qs: {
},
qs: {},
},
send: {
preSend: [
Expand Down Expand Up @@ -339,8 +339,7 @@ export const objectOperations: INodeProperties[] = [
request: {
method: 'PATCH',
url: '={{"/b/" + $parameter["bucketName"] + "/o/" + $parameter["objectName"]}}',
qs: {
},
qs: {},
body: {},
},
send: {
Expand Down

0 comments on commit 36ec81f

Please sign in to comment.