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()