@@ -66,7 +66,6 @@ func (s ReportService) loadByID(
|
||||
return nil
|
||||
},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -143,6 +142,7 @@ func (s ReportService) exportPDFData(
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot download PDF from S3: %w", err)
|
||||
}
|
||||
|
||||
defer func() { _ = result.Body.Close() }()
|
||||
|
||||
pdfData, err := io.ReadAll(result.Body)
|
||||
|
||||
Reference in New Issue
Block a user