member base data extend
This commit is contained in:
parent
80b1b5cf62
commit
e4e5f6dffb
7 changed files with 37 additions and 14 deletions
|
@ -15,10 +15,10 @@ export class communicationType {
|
|||
default: "",
|
||||
transformer: {
|
||||
from(value: string): Array<string> {
|
||||
return value.split(",");
|
||||
return (value ?? "").split(",");
|
||||
},
|
||||
to(value: Array<string>): string {
|
||||
return value.join(",");
|
||||
return (value ?? []).join(",");
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -5,6 +5,7 @@ import { memberAwards } from "./memberAwards";
|
|||
import { memberQualifications } from "./memberQualifications";
|
||||
import { memberExecutivePositions } from "./memberExecutivePositions";
|
||||
import { communication } from "./communication";
|
||||
import { CommunicationViewModel } from "../viewmodel/admin/communication.models";
|
||||
|
||||
@Entity()
|
||||
export class member {
|
||||
|
@ -63,4 +64,5 @@ export class member {
|
|||
|
||||
firstMembershipEntry?: membership;
|
||||
lastMembershipEntry?: membership;
|
||||
preferredCommunication?: Array<communication>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue