itlab-internal-services 2.15.6 → 2.15.7

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.
@@ -98,7 +98,7 @@ class VirtualsFactory {
98
98
  get views() {
99
99
  this.virtualMultipleAccounts('viewedBy', '_viewedBy');
100
100
  this.schema.virtual('views').get(function () {
101
- return (0, class_validator_1.isArray)(this._viewedBy) ? Array(this._viewedBy).length : 0;
101
+ return (0, class_validator_1.isArray)(this._viewedBy) ? this._viewedBy.length : 0;
102
102
  });
103
103
  return this;
104
104
  }
@@ -106,7 +106,7 @@ class VirtualsFactory {
106
106
  get likes() {
107
107
  this.virtualMultipleAccounts('likedBy', '_likedBy');
108
108
  this.schema.virtual('likes').get(function () {
109
- return (0, class_validator_1.isArray)(this._likedBy) ? Array(this._likedBy).length : 0;
109
+ return (0, class_validator_1.isArray)(this._likedBy) ? this._likedBy.length : 0;
110
110
  });
111
111
  return this;
112
112
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Timo Scheuermann",
5
5
  "email": "timo.scheuermann@sv-informatik.de"
6
6
  },
7
- "version": "2.15.6",
7
+ "version": "2.15.7",
8
8
  "type": "commonjs",
9
9
  "files": [
10
10
  "dist"