diff --git a/src/command/club/member/membershipCommandHandler.ts b/src/command/club/member/membershipCommandHandler.ts index 602d6d7..0cd0e5a 100644 --- a/src/command/club/member/membershipCommandHandler.ts +++ b/src/command/club/member/membershipCommandHandler.ts @@ -31,7 +31,7 @@ export default abstract class MembershipCommandHandler { .createQueryBuilder() .update(membership) .set({ - end: new Date(createMembership.start).setDate(new Date(createMembership.start).getDate() - 1), + end: new Date(new Date(createMembership.start).setDate(new Date(createMembership.start).getDate() - 1)), terminationReason: "beendet durch neuen Eintrag.", }) .where("end IS NULL")