tango-app-api-audio-analytics 1.0.13 → 1.0.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audio-analytics",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "audioAnalytics",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -190,7 +190,14 @@ export async function listCohortsByClient( req, res ) {
190
190
  logger.info( { message: req.query, function: 'listCohortsByClient' } );
191
191
  const query = {
192
192
  query: {
193
- match: { clientId, isDeleted: false },
193
+ bool: {
194
+ must: [
195
+ { match: { clientId } },
196
+ ],
197
+ must_not: [
198
+ { match: { isDeleted: true } },
199
+ ],
200
+ },
194
201
  },
195
202
  size: Number( limit ),
196
203
  from: Number( offset ),