change user refs to member
This commit is contained in:
parent
f3aae6a017
commit
43c18cdc7b
4 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue