@dynamatix/gb-schemas 1.2.66 → 1.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,7 +132,7 @@ const applicantSchema = new mongoose.Schema({
|
|
|
132
132
|
previous2AddressMovedDate: { type: String, default: null },
|
|
133
133
|
previous2AddressPostCode: { type: String, default: null },
|
|
134
134
|
previous2AddressPropertyOwnedBy: { type: String, default: null },
|
|
135
|
-
|
|
135
|
+
relationshipToOthers: { type: String, required: true },
|
|
136
136
|
residentialStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
137
137
|
retirementAge: { type: String, required: true },
|
|
138
138
|
taxJurisdictionLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
@@ -196,7 +196,7 @@ applicantSchema.virtual('maritalStatus').get(function () {
|
|
|
196
196
|
return this.maritalStatusLid?.name ?? null;
|
|
197
197
|
});
|
|
198
198
|
applicantSchema.virtual('relationshipToOthers').get(function () {
|
|
199
|
-
return this.
|
|
199
|
+
return this.relationshipToOthers?.name ?? null;
|
|
200
200
|
});
|
|
201
201
|
applicantSchema.virtual('residentialStatus').get(function () {
|
|
202
202
|
return this.residentialStatusLid?.name ?? null;
|