Skip to content

Commit

Permalink
Merge pull request #891 from pastelnetwork/includeFilenameForCascadeR…
Browse files Browse the repository at this point in the history
…egProcess

include filename in the cascade registration request
  • Loading branch information
j-rafique authored Jul 1, 2024
2 parents e468956 + 9e6e87e commit 57af543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions walletnode/api/services/cascade.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ func (service *CascadeAPIHandler) Download(ctx context.Context, p *cascade.Downl
if isMultiVolume {
fsp := common.FileSplitter{PartSizeMB: partSizeMB}
if err := fsp.JoinFiles(folderPath); err != nil {
log.WithContext(ctx).WithError(err).Error("unable to join files")
return nil, cascade.MakeInternalServerError(errors.New("unable to join files"))
}

Expand Down
1 change: 1 addition & 0 deletions walletnode/services/cascaderegister/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (service *CascadeRegistrationService) AddTask(p *cascade.StartProcessingPay
request.RegAttemptID = regAttemptID
request.FileID = filename
request.BaseFileID = baseFileID
request.FileName = filename

// get image filename from storage based on image_id
filePath := filepath.Join(service.config.CascadeFilesDir, p.FileID, filename)
Expand Down

0 comments on commit 57af543

Please sign in to comment.