Skip to content

Commit

Permalink
Merge pull request #14644 from transcom/B-22186
Browse files Browse the repository at this point in the history
B 22186
  • Loading branch information
r-mettler authored Jan 22, 2025
2 parents c0f5df0 + 04da6e3 commit 5d18ae2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,14 @@ func (g *moveUserUploadToPDFDownloader) GenerateDownloadMoveUserUploadPDF(appCtx

// Build orderUploadDocType for document
func (g *moveUserUploadToPDFDownloader) buildPdfBatchInfo(appCtx appcontext.AppContext, uploadDocType services.MoveOrderUploadType, documentID uuid.UUID) (*pdfBatchInfo, error) {
document, err := models.FetchDocumentWithNoRestrictions(appCtx.DB(), appCtx.Session(), documentID, false)
document, err := models.FetchDocumentWithNoRestrictions(appCtx.DB(), appCtx.Session(), documentID, true)
if err != nil {
return nil, errors.Wrap(err, fmt.Sprintf("error fetching document domain by id: %s", documentID))
}

// filter out deleted uploads from userUploads
document.UserUploads = document.UserUploads.FilterDeleted()

var pdfFileNames []string
var pageCounts []int
// Document has one or more uploads. Create PDF file for each.
Expand Down

0 comments on commit 5d18ae2

Please sign in to comment.