From ad5f624d5d380eee68e4b2dc0fce0d113081eabe Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 5 Jan 2025 18:32:41 +0100 Subject: [PATCH] fix: grouping of memberships --- src/migrations/1736084198860-extendViewValues.ts | 3 ++- src/views/membershipsView.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/migrations/1736084198860-extendViewValues.ts b/src/migrations/1736084198860-extendViewValues.ts index c09064d..9816a83 100644 --- a/src/migrations/1736084198860-extendViewValues.ts +++ b/src/migrations/1736084198860-extendViewValues.ts @@ -55,7 +55,8 @@ export class ExtendViewValues1736084198860 implements MigrationInterface { ) .leftJoin("membership.status", "status") .leftJoin("membership.member", "member") - .groupBy("status.id"), + .groupBy("status.id") + .addGroupBy("member.id"), }), true ); diff --git a/src/views/membershipsView.ts b/src/views/membershipsView.ts index 2beb33f..0b5df92 100644 --- a/src/views/membershipsView.ts +++ b/src/views/membershipsView.ts @@ -22,7 +22,8 @@ import { Salutation } from "../enums/salutation"; ) .leftJoin("membership.status", "status") .leftJoin("membership.member", "member") - .groupBy("status.id"), + .groupBy("status.id") + .addGroupBy("member.id"), }) export class membershipView { @ViewColumn()