@felloh-org/lambda-wrapper 1.2.31 → 1.2.33

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.
@@ -90,7 +90,8 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
90
90
  updated_at: this.updated_at,
91
91
  deleted_at: this.deleted_at,
92
92
  features: [],
93
- currencies: this.currencies,
93
+ currencies: this.currencies ? this.currencies : [],
94
+ payment_methods: this.payment_methods ? this.payment_methods : [],
94
95
  parent: null
95
96
  };
96
97
 
@@ -110,11 +111,17 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
110
111
  }
111
112
 
112
113
  getPublicCompactData() {
113
- return {
114
+ const response = {
114
115
  id: this.id,
115
116
  name: this.name,
116
117
  image: this.image
117
118
  };
119
+
120
+ if (this.parent !== null && typeof this.parent.getPublicCompactData === 'function') {
121
+ response.parent = this.parent.getPublicCompactData();
122
+ }
123
+
124
+ return response;
118
125
  }
119
126
 
120
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.31",
3
+ "version": "1.2.33",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {