@felloh-org/lambda-wrapper 1.1.12 → 1.1.13
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.
|
@@ -97,10 +97,14 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
97
97
|
response.transactions = this.transactions.map(transaction => transaction.getPublicCompactData());
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if (typeof this.user.id !== 'undefined') {
|
|
100
|
+
if (this.user !== null && typeof this.user.id !== 'undefined') {
|
|
101
101
|
response.user = this.user.getPublicCompactData();
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
|
|
105
|
+
response.organisation = this.organisation.getPublicCompactData();
|
|
106
|
+
}
|
|
107
|
+
|
|
104
108
|
return response;
|
|
105
109
|
}
|
|
106
110
|
|
|
@@ -172,4 +176,5 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
172
176
|
writable: true,
|
|
173
177
|
initializer: null
|
|
174
178
|
})), _class2)) || _class);
|
|
175
|
-
exports.default = Booking;
|
|
179
|
+
exports.default = Booking;
|
|
180
|
+
``;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dotenv": "^16.0.0",
|
|
58
58
|
"epsagon": "^1.121.3",
|
|
59
59
|
"typeorm": "^0.2.41",
|
|
60
|
-
"typeorm-aurora-data-api-driver": "^2.
|
|
60
|
+
"typeorm-aurora-data-api-driver": "^2.4.2",
|
|
61
61
|
"useragent": "^2.3.0",
|
|
62
62
|
"uuid": "^8.3.2",
|
|
63
63
|
"validate.js": "^0.13.1",
|