@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
- relationshipToOthersLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
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.relationshipToOthersLid?.name ?? null;
199
+ return this.relationshipToOthers?.name ?? null;
200
200
  });
201
201
  applicantSchema.virtual('residentialStatus').get(function () {
202
202
  return this.residentialStatusLid?.name ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.66",
3
+ "version": "1.2.67",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",