itlab-internal-services 2.16.7 → 2.16.8

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.
@@ -42,9 +42,9 @@ async function populateLikedBy(options, items, accountsService) {
42
42
  item.likes = Math.max(item._likedBy.length, item.likes); // TODO: Tmp Fix
43
43
  if (!options.includeLikedBy)
44
44
  item.likedBy = undefined;
45
- if (!options.includeLikedByIds)
45
+ if (!(options.includeLikedBy || options.includeLikedByIds)) {
46
46
  item._likedBy = undefined;
47
- if (!(options.includeLikedBy || options.includeLikedByIds))
48
47
  item.likes = undefined;
48
+ }
49
49
  });
50
50
  }
@@ -51,9 +51,9 @@ async function populateViewedBy(options, items, accountsService) {
51
51
  item.views = Math.max(item._viewedBy.length, item.views); // TODO: Tmp Fix
52
52
  if (!options.includeViewedBy)
53
53
  item.viewedBy = undefined;
54
- if (!options.includeViewedByIds)
54
+ if (!(options.includeViewedBy || options.includeViewedByIds)) {
55
55
  item._viewedBy = undefined;
56
- if (!(options.includeViewedBy || options.includeViewedByIds))
57
56
  item.views = undefined;
57
+ }
58
58
  });
59
59
  }
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.16.7",
7
+ "version": "2.16.8",
8
8
  "type": "commonjs",
9
9
  "files": [
10
10
  "dist"