@plusscommunities/pluss-core-aws 2.0.7-beta.3 → 2.0.7-beta.4

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.
@@ -155,6 +155,8 @@ const getEventMatches = async (users, audienceTypeSelection) => {
155
155
  * @param {string} audienceType - The type of audience to retrieve.
156
156
  * @param {string | Array} audienceTypeSelection - The selection criteria for the audience.
157
157
  * @param {boolean} [preview=true] - Indicates whether to retrieve a preview of the users in the audience.
158
+ * @param {boolean} [includeType=true] - Indicates whether to include the user type in the preview.
159
+ * @param {boolean} [includeSite=true] - Indicates whether to include the site in the preview.
158
160
  * @returns {Array} - The audience that matches the specified criteria.
159
161
  */
160
162
  module.exports = async (
@@ -20,7 +20,14 @@ module.exports = async (site, permissions) => {
20
20
  };
21
21
  });
22
22
  log("getUsersByPermission", "audienceMatches", audienceMatches, logId);
23
- const audience = await getAudience(site, "Custom", audienceMatches);
23
+ const audience = await getAudience(
24
+ site,
25
+ "Custom",
26
+ audienceMatches,
27
+ true,
28
+ false,
29
+ false
30
+ );
24
31
  log("getUsersByPermission", "audienceLength", audience.length, logId);
25
32
 
26
33
  return audience;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-aws",
3
- "version": "2.0.7-beta.3",
3
+ "version": "2.0.7-beta.4",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "scripts": {
6
6
  "betapatch": "npm version prepatch --preid=beta",