@blackcode_sa/metaestetics-api 1.4.13 → 1.4.14
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/dist/index.js
CHANGED
|
@@ -3785,14 +3785,14 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3785
3785
|
isDefault
|
|
3786
3786
|
});
|
|
3787
3787
|
console.log("[CLINIC_GROUP] Input data:", JSON.stringify(data, null, 2));
|
|
3788
|
+
let validatedData;
|
|
3788
3789
|
try {
|
|
3789
|
-
|
|
3790
|
+
validatedData = createClinicGroupSchema.parse(data);
|
|
3790
3791
|
console.log("[CLINIC_GROUP] Data validation passed");
|
|
3791
3792
|
} catch (validationError) {
|
|
3792
3793
|
console.error("[CLINIC_GROUP] Data validation failed:", validationError);
|
|
3793
3794
|
throw validationError;
|
|
3794
3795
|
}
|
|
3795
|
-
const validatedData = createClinicGroupSchema.parse(data);
|
|
3796
3796
|
try {
|
|
3797
3797
|
console.log("[CLINIC_GROUP] Checking if owner exists", { ownerId });
|
|
3798
3798
|
if (isDefault) {
|
package/dist/index.mjs
CHANGED
|
@@ -3741,14 +3741,14 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3741
3741
|
isDefault
|
|
3742
3742
|
});
|
|
3743
3743
|
console.log("[CLINIC_GROUP] Input data:", JSON.stringify(data, null, 2));
|
|
3744
|
+
let validatedData;
|
|
3744
3745
|
try {
|
|
3745
|
-
|
|
3746
|
+
validatedData = createClinicGroupSchema.parse(data);
|
|
3746
3747
|
console.log("[CLINIC_GROUP] Data validation passed");
|
|
3747
3748
|
} catch (validationError) {
|
|
3748
3749
|
console.error("[CLINIC_GROUP] Data validation failed:", validationError);
|
|
3749
3750
|
throw validationError;
|
|
3750
3751
|
}
|
|
3751
|
-
const validatedData = createClinicGroupSchema.parse(data);
|
|
3752
3752
|
try {
|
|
3753
3753
|
console.log("[CLINIC_GROUP] Checking if owner exists", { ownerId });
|
|
3754
3754
|
if (isDefault) {
|
package/package.json
CHANGED
|
@@ -71,17 +71,16 @@ export async function createClinicGroup(
|
|
|
71
71
|
});
|
|
72
72
|
console.log("[CLINIC_GROUP] Input data:", JSON.stringify(data, null, 2));
|
|
73
73
|
|
|
74
|
+
let validatedData: CreateClinicGroupData;
|
|
74
75
|
// Validacija podataka
|
|
75
76
|
try {
|
|
76
|
-
|
|
77
|
+
validatedData = createClinicGroupSchema.parse(data);
|
|
77
78
|
console.log("[CLINIC_GROUP] Data validation passed");
|
|
78
79
|
} catch (validationError) {
|
|
79
80
|
console.error("[CLINIC_GROUP] Data validation failed:", validationError);
|
|
80
81
|
throw validationError;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
const validatedData = createClinicGroupSchema.parse(data);
|
|
84
|
-
|
|
85
84
|
// Proveravamo da li owner postoji i da li je clinic admin
|
|
86
85
|
try {
|
|
87
86
|
console.log("[CLINIC_GROUP] Checking if owner exists", { ownerId });
|