From b08ddf4c6177084e08ca6e5e517f150c044b5255 Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:46:04 +0200 Subject: [PATCH] fix: undefined param Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --- server/src/repositories/person.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/repositories/person.repository.ts b/server/src/repositories/person.repository.ts index fae191c464..86927a8ba8 100644 --- a/server/src/repositories/person.repository.ts +++ b/server/src/repositories/person.repository.ts @@ -215,7 +215,7 @@ export class PersonRepository implements IPersonRepository { return queryBuilder.getMany(); } - @GenerateSql({ params: [DummyValue.UUID, { withArchived: undefined }] }) + @GenerateSql({ params: [DummyValue.UUID, {}] }) async getStatistics(personId: string, options: PersonStatsOptions): Promise { /* * withArchived: true -> Return the count of all assets for a given person