Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-1.0' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Dec 16, 2024
2 parents a0612d5 + 330b36c commit 334151d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Result<InputStream> getItem(final String sessionUUID, final Long pk) {

public Result<ObjectWriteResponse> uploadItem(final ByteArrayInputStream screenshotInputStream, final String sessionUUID, final Long pk){
return Result.tryCatch(() ->
this.minioClient.putObject(
this.minioClient.putObject(
PutObjectArgs.builder()
.bucket(BUCKET_NAME)
.object(sessionUUID + Constants.UNDERLINE + pk)
Expand All @@ -102,12 +102,12 @@ public Result<ObjectWriteResponse> uploadItem(final ByteArrayInputStream screens

public Result<ObjectWriteResponse> uploadItemBatch(final List<SnowballObject> batchItems){
return Result.tryCatch(() ->
this.minioClient.uploadSnowballObjects(
UploadSnowballObjectsArgs
.builder()
.bucket(BUCKET_NAME)
.objects(batchItems)
.build())
this.minioClient.uploadSnowballObjects(
UploadSnowballObjectsArgs
.builder()
.bucket(BUCKET_NAME)
.objects(batchItems)
.build())
);
}

Expand Down

0 comments on commit 334151d

Please sign in to comment.