Skip to content

Commit 7a8a65c

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 3b97072 + afc45c0 commit 7a8a65c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/periodic-report/periodic-report.repository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class PeriodicReportRepository extends DtoRepository<
182182
const filters = { type, parent, start, end };
183183
const result = await this.db
184184
.query()
185-
.matchNode('node', 'PeriodicReport')
185+
.matchNode('node', `${type || ''}Report`)
186186
.apply(
187187
filter.builder(filters, {
188188
parent: filter.pathExists((id) => [
@@ -192,6 +192,7 @@ export class PeriodicReportRepository extends DtoRepository<
192192
]),
193193
start: filter.dateTimeProp(),
194194
end: filter.dateTimeProp(),
195+
//TODO: determine how to fix this type filter
195196
type: ({ value }) => hasLabel(`${value}Report`),
196197
}),
197198
)

0 commit comments

Comments
 (0)