From 217bb78b3bd5a37563baec61c0118d512ddcb702 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Mar 2024 20:56:22 -0500 Subject: [PATCH] fix: ExistingUploadID no longer needed --- api/s5/s5.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 45b1e0a..b8f1ed6 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -1922,11 +1922,10 @@ func (s *S5API) pinImportCronJob(cid string, url string, proofUrl string, userId return object.Body, nil }, - Bucket: s.config.Config().Core.Storage.S3.BufferBucket, - FileName: s5.GetStorageProtocol(s.protocol).EncodeFileName(parsedCid.Hash.HashBytes()), - Size: parsedCid.Size, - ExistingUploadID: "", - UploadIDHandler: nil, + Bucket: s.config.Config().Core.Storage.S3.BufferBucket, + FileName: s5.GetStorageProtocol(s.protocol).EncodeFileName(parsedCid.Hash.HashBytes()), + Size: parsedCid.Size, + UploadIDHandler: nil, }, &baoProof) if err != nil {