member base data extend

This commit is contained in:
Julian Krauser 2024-09-17 16:44:39 +02:00
parent 80b1b5cf62
commit e4e5f6dffb
7 changed files with 37 additions and 14 deletions

View file

@ -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(",");
},
},
})

View file

@ -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>;
}