Browse Source

Joystream CLI: Disable upload auth in UploadCommandBase

Leszek Wiesner 3 years ago
parent
commit
e856550574
1 changed files with 0 additions and 2 deletions
  1. 0 2
      cli/src/base/UploadCommandBase.ts

+ 0 - 2
cli/src/base/UploadCommandBase.ts

@@ -249,7 +249,6 @@ export default abstract class UploadCommandBase extends ContentDirectoryCommandB
       this.error('No active storage node found!', { exit: ExitCodes.ActionCurrentlyUnavailable })
     }
     this.log(`Chosen storage node endpoint: ${storageNodeInfo.apiEndpoint}`)
-    const token = await this.getStorageNodeUploadToken(storageNodeInfo, account, memberId, objectId, bagId)
     const { fileStream, progressBar } = this.createReadStreamWithProgressBar(
       filePath,
       `Uploading ${filePath}`,
@@ -272,7 +271,6 @@ export default abstract class UploadCommandBase extends ContentDirectoryCommandB
     try {
       await axios.post(`${storageNodeInfo.apiEndpoint}/files`, formData, {
         headers: {
-          'x-api-key': token,
           'content-type': 'multipart/form-data',
           ...formData.getHeaders(),
         },