We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PeriodicReport.update
1 parent 49366a4 commit e27c30aCopy full SHA for e27c30a
src/components/periodic-report/periodic-report.service.ts
@@ -72,20 +72,16 @@ export class PeriodicReportService {
72
const updated = await this.repo.updateProperties(current, simpleChanges);
73
74
if (reportFile) {
75
- await this.files.updateDefinedFile(
+ const file = await this.files.updateDefinedFile(
76
current.reportFile,
77
'file',
78
- input.reportFile,
79
- session,
80
- );
81
- const newVersion = await this.files.getFileVersion(
82
- reportFile.uploadId,
+ reportFile,
83
session,
84
);
85
await this.eventBus.publish(
86
new PeriodicReportUploadedEvent(
87
updated,
88
- this.files.asDownloadable(newVersion),
+ this.files.asDownloadable(file.newVersion),
89
90
),
91
0 commit comments