@vrplatform/graphql 1.1.6 → 1.1.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.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "!**/*.spec.*",
11
11
  "LICENSE"
12
12
  ],
13
- "version": "1.1.6",
13
+ "version": "1.1.8",
14
14
  "description": "Finalytic graphql",
15
15
  "main": "build/main/index.js",
16
16
  "module": "build/module/index.js",
@@ -24,7 +24,8 @@ export function whereListingIsActive(): listing_bool_exp {
24
24
 
25
25
  export function whereGlListingIsActive(
26
26
  where?: listing_bool_exp,
27
- date: string = utc().yyyymmdd()
27
+ date: string = utc().yyyymmdd(),
28
+ includeUpcoming = false
28
29
  ): listing_bool_exp {
29
30
  const statusWhere = {
30
31
  _or: [
@@ -34,27 +35,7 @@ export function whereGlListingIsActive(
34
35
  },
35
36
  },
36
37
  {
37
- ownershipPeriods: {
38
- setListingInactive: { _eq: false },
39
- _or: [
40
- {
41
- startAt: {
42
- _lt: date,
43
- },
44
- endAt: {
45
- _gte: date,
46
- },
47
- },
48
- {
49
- startAt: {
50
- _lt: date,
51
- },
52
- endAt: {
53
- _is_null: true,
54
- },
55
- },
56
- ],
57
- },
38
+ _not: whereGlListingIsInactive(undefined, date, includeUpcoming),
58
39
  },
59
40
  ],
60
41
  } satisfies listing_bool_exp;