@outliant/sunrise-utils 1.1.17 → 1.1.18

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/CHANGELOG.md CHANGED
@@ -4,10 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [1.1.18](https://github.com/outliant/sunrise-utils/compare/1.1.17...1.1.18)
8
+
9
+ - chore: update is_paused query filters #863hbxjkt [`#24`](https://github.com/outliant/sunrise-utils/pull/24)
10
+
7
11
  #### [1.1.17](https://github.com/outliant/sunrise-utils/compare/1.1.16...1.1.17)
8
12
 
13
+ > 15 January 2024
14
+
9
15
  - chore: update task status filter #863hbxjkt [`#23`](https://github.com/outliant/sunrise-utils/pull/23)
10
16
  - chore: clean up is_paused filter #863hbxjkt [`f098a15`](https://github.com/outliant/sunrise-utils/commit/f098a15636cc2bb8fcd1c2bfc3fb9f4ceec5fc89)
17
+ - chore(release): 1.1.17 [`a796e59`](https://github.com/outliant/sunrise-utils/commit/a796e594a343f41ceb7941607f43ed95c894d2e5)
11
18
 
12
19
  #### [1.1.16](https://github.com/outliant/sunrise-utils/compare/1.1.15...1.1.16)
13
20
 
package/lib/queries.js CHANGED
@@ -26,30 +26,30 @@ module.exports.getNotIsPausedQuery = () => {
26
26
  return {
27
27
  bool: {
28
28
  should: [
29
- {
30
- match: {
31
- is_paused: false
32
- }
33
- },
34
29
  {
35
30
  bool: {
36
- should: [
31
+ must: [
37
32
  {
38
33
  exists: {
39
34
  field: 'is_paused'
40
35
  }
41
36
  },
42
37
  {
43
- bool: {
44
- must_not: {
45
- exists: {
46
- field: 'is_paused'
47
- }
48
- }
38
+ match: {
39
+ is_paused: false
49
40
  }
50
41
  }
51
42
  ]
52
43
  }
44
+ },
45
+ {
46
+ bool: {
47
+ must_not: {
48
+ exists: {
49
+ field: 'is_paused'
50
+ }
51
+ }
52
+ }
53
53
  }
54
54
  ]
55
55
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@outliant/sunrise-utils",
3
3
  "description": "Helper functions for project Sunrise",
4
- "version": "1.1.17",
4
+ "version": "1.1.18",
5
5
  "license": "ISC",
6
6
  "author": "Outliant",
7
7
  "main": "index.js",
@@ -32,30 +32,30 @@ describe('queries', function () {
32
32
  expect(output).to.be.deep.equal({
33
33
  bool: {
34
34
  should: [
35
- {
36
- match: {
37
- is_paused: false
38
- }
39
- },
40
35
  {
41
36
  bool: {
42
- should: [
37
+ must: [
43
38
  {
44
39
  exists: {
45
40
  field: 'is_paused'
46
41
  }
47
42
  },
48
43
  {
49
- bool: {
50
- must_not: {
51
- exists: {
52
- field: 'is_paused'
53
- }
54
- }
44
+ match: {
45
+ is_paused: false
55
46
  }
56
47
  }
57
48
  ]
58
49
  }
50
+ },
51
+ {
52
+ bool: {
53
+ must_not: {
54
+ exists: {
55
+ field: 'is_paused'
56
+ }
57
+ }
58
+ }
59
59
  }
60
60
  ]
61
61
  }