From 43c18cdc7b21ec7036b0ba8ae5117f02af575063 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Tue, 31 Dec 2024 14:56:47 +0100 Subject: [PATCH] change user refs to member --- src/command/memberAwardCommandHandler.ts | 6 +++--- src/command/memberExecutivePositionCommandHandler.ts | 6 +++--- src/command/memberQualificationCommandHandler.ts | 6 +++--- src/command/membershipCommandHandler.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/command/memberAwardCommandHandler.ts b/src/command/memberAwardCommandHandler.ts index 05b2d0d..79aeae4 100644 --- a/src/command/memberAwardCommandHandler.ts +++ b/src/command/memberAwardCommandHandler.ts @@ -1,7 +1,7 @@ import { dataSource } from "../data-source"; import { award } from "../entity/award"; +import { member } from "../entity/member"; import { memberAwards } from "../entity/memberAwards"; -import { user } from "../entity/user"; import InternalException from "../exceptions/internalException"; import { CreateMemberAwardCommand, DeleteMemberAwardCommand, UpdateMemberAwardCommand } from "./memberAwardCommand"; @@ -21,8 +21,8 @@ export default abstract class MemberAwardCommandHandler { note: createMemberAward.note, date: createMemberAward.date, member: await dataSource - .getRepository(user) - .createQueryBuilder("user") + .getRepository(member) + .createQueryBuilder("member") .where("id = :id", { id: createMemberAward.memberId }) .getOneOrFail(), award: await dataSource diff --git a/src/command/memberExecutivePositionCommandHandler.ts b/src/command/memberExecutivePositionCommandHandler.ts index a9a1762..e6f88b9 100644 --- a/src/command/memberExecutivePositionCommandHandler.ts +++ b/src/command/memberExecutivePositionCommandHandler.ts @@ -1,7 +1,7 @@ import { dataSource } from "../data-source"; import { executivePosition } from "../entity/executivePosition"; +import { member } from "../entity/member"; import { memberExecutivePositions } from "../entity/memberExecutivePositions"; -import { user } from "../entity/user"; import InternalException from "../exceptions/internalException"; import { CreateMemberExecutivePositionCommand, @@ -25,8 +25,8 @@ export default abstract class MemberExecutivePositionCommandHandler { start: createMemberExecutivePosition.start, end: createMemberExecutivePosition.end, member: await dataSource - .getRepository(user) - .createQueryBuilder("user") + .getRepository(member) + .createQueryBuilder("member") .where("id = :id", { id: createMemberExecutivePosition.memberId }) .getOneOrFail(), executivePosition: await dataSource diff --git a/src/command/memberQualificationCommandHandler.ts b/src/command/memberQualificationCommandHandler.ts index 2963638..38f887d 100644 --- a/src/command/memberQualificationCommandHandler.ts +++ b/src/command/memberQualificationCommandHandler.ts @@ -1,13 +1,13 @@ import { dataSource } from "../data-source"; import { qualification } from "../entity/qualification"; import { memberQualifications } from "../entity/memberQualifications"; -import { user } from "../entity/user"; import InternalException from "../exceptions/internalException"; import { CreateMemberQualificationCommand, DeleteMemberQualificationCommand, UpdateMemberQualificationCommand, } from "./memberQualificationCommand"; +import { member } from "../entity/member"; export default abstract class MemberQualificationCommandHandler { /** @@ -24,8 +24,8 @@ export default abstract class MemberQualificationCommandHandler { note: createMemberQualification.note, start: createMemberQualification.start, member: await dataSource - .getRepository(user) - .createQueryBuilder("user") + .getRepository(member) + .createQueryBuilder("member") .where("id = :id", { id: createMemberQualification.memberId }) .getOneOrFail(), qualification: await dataSource diff --git a/src/command/membershipCommandHandler.ts b/src/command/membershipCommandHandler.ts index 204b0d8..b38366a 100644 --- a/src/command/membershipCommandHandler.ts +++ b/src/command/membershipCommandHandler.ts @@ -1,7 +1,7 @@ import { dataSource } from "../data-source"; +import { member } from "../entity/member"; import { membership } from "../entity/membership"; import { membershipStatus } from "../entity/membershipStatus"; -import { user } from "../entity/user"; import InternalException from "../exceptions/internalException"; import { CreateMembershipCommand, DeleteMembershipCommand, UpdateMembershipCommand } from "./membershipCommand"; @@ -23,8 +23,8 @@ export default abstract class MembershipCommandHandler { internalId: createMembership.internalId, start: createMembership.start, member: await dataSource - .getRepository(user) - .createQueryBuilder("user") + .getRepository(member) + .createQueryBuilder("member") .where("id = :id", { id: createMembership.memberId }) .getOneOrFail(), status: await dataSource