@spytecgps/nova-orm 1.4.78 → 1.4.80

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.
@@ -57,20 +57,10 @@ class createUserAuthorizedBoundarySecurityViewV21684483705000 {
57
57
  AND NOT EXISTS (
58
58
  SELECT 1
59
59
  FROM entityTag ut
60
- JOIN entityTag rt
61
- ON rt.tagId = ut.tagId
62
- AND rt.entityType = 'Boundary'
63
- AND rt.isSecurityGroup = 1
64
- JOIN boundary b
65
- ON b.id = rt.entityId
66
- JOIN userSecurityRole usr
67
- ON usr.userId = ut.userId
68
- AND usr.clientId = b.clientId
69
- WHERE ut.entityType = 'User'
70
- AND ut.isSecurityGroup = 1
71
- AND b.clientId = uab.clientId
72
- AND b.id = uab.boundaryId
60
+ WHERE ut.clientId = uab.clientId
73
61
  AND ut.userId = uab.userId
62
+ AND ut.entityType = 'User'
63
+ AND ut.isSecurityGroup = 1
74
64
  )
75
65
  );
76
66
  `);
@@ -56,10 +56,10 @@ class createUserAuthorizedDeviceSecurityViewV21684483706000 {
56
56
  AND NOT EXISTS (
57
57
  SELECT 1
58
58
  FROM entityTag ut
59
- JOIN userSecurityRole usr
60
- ON usr.userId = ut.userId
61
- WHERE ut.entityType = 'User'
62
- AND ut.isSecurityGroup = 1
59
+ WHERE ut.clientId = uad.clientId
60
+ AND ut.userId = uad.userId
61
+ AND ut.entityType = 'User'
62
+ AND ut.isSecurityGroup = 1
63
63
  )
64
64
  );
65
65
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.78",
3
+ "version": "1.4.80",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",