@chevre/domain 21.30.0-alpha.42 → 21.30.0-alpha.43

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.
@@ -121,8 +121,8 @@ class AuthorizationRepo {
121
121
  if (doc === null) {
122
122
  throw new factory.errors.NotFound(this.authorizationModel.modelName);
123
123
  }
124
- const { id, object, typeOf, audience } = doc.toObject();
125
- return Object.assign({ id, object, typeOf }, (typeof (audience === null || audience === void 0 ? void 0 : audience.id) === 'string') ? { audience } : undefined);
124
+ const { id, object, typeOf, audience, issuedBy } = doc.toObject();
125
+ return Object.assign(Object.assign({ id, object, typeOf }, (typeof (issuedBy === null || issuedBy === void 0 ? void 0 : issuedBy.id) === 'string') ? { issuedBy } : undefined), (typeof (audience === null || audience === void 0 ? void 0 : audience.id) === 'string') ? { audience } : undefined);
126
126
  });
127
127
  }
128
128
  /**
@@ -11,7 +11,7 @@ const schemaDefinition = {
11
11
  typeOf: { type: String, required: true },
12
12
  ticketToken: { type: String, required: true },
13
13
  dateIssued: { type: Date, required: true },
14
- issuedBy: mongoose_1.SchemaTypes.Mixed
14
+ issuedBy: { type: mongoose_1.SchemaTypes.Mixed, required: true }
15
15
  };
16
16
  const schemaOptions = {
17
17
  autoIndex: settings_1.MONGO_AUTO_INDEX,
package/package.json CHANGED
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "21.30.0-alpha.42"
113
+ "version": "21.30.0-alpha.43"
114
114
  }