@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
|
-
|
|
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
|
-
|
|
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