@felloh-org/lambda-wrapper 1.2.32 → 1.2.34

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.
@@ -111,11 +111,17 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
111
111
  }
112
112
 
113
113
  getPublicCompactData() {
114
- return {
114
+ const response = {
115
115
  id: this.id,
116
116
  name: this.name,
117
117
  image: this.image
118
118
  };
119
+
120
+ if (this.parent && typeof this.parent.getPublicCompactData === 'function') {
121
+ response.parent = this.parent.getPublicCompactData();
122
+ }
123
+
124
+ return response;
119
125
  }
120
126
 
121
127
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec3], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {