@valentine-efagene/qshelter-common 2.0.136 → 2.0.137

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.
@@ -40,10 +40,14 @@ const OPTIONAL_TENANT_MODELS = [
40
40
  "permission",
41
41
  ];
42
42
  function isGlobalModel(model) {
43
- return GLOBAL_MODELS.includes(model);
43
+ // Prisma extensions pass model name in camelCase
44
+ const normalizedModel = model.toLowerCase();
45
+ return GLOBAL_MODELS.includes(normalizedModel);
44
46
  }
45
47
  function isOptionalTenantModel(model) {
46
- return OPTIONAL_TENANT_MODELS.includes(model);
48
+ // Prisma extensions pass model name in camelCase
49
+ const normalizedModel = model.toLowerCase();
50
+ return OPTIONAL_TENANT_MODELS.includes(normalizedModel);
47
51
  }
48
52
  /**
49
53
  * Check if model is tenant-scoped (required tenantId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valentine-efagene/qshelter-common",
3
- "version": "2.0.136",
3
+ "version": "2.0.137",
4
4
  "description": "Shared database schemas and utilities for QShelter services",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",