@blackcode_sa/metaestetics-api 1.5.18 → 1.5.19
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
|
@@ -7617,7 +7617,7 @@ async function searchCalendarEventsUtil(db, params) {
|
|
|
7617
7617
|
"Clinic ID (entityId) is required when searching clinic-related events."
|
|
7618
7618
|
);
|
|
7619
7619
|
}
|
|
7620
|
-
baseCollectionPath = CALENDAR_COLLECTION
|
|
7620
|
+
baseCollectionPath = `${CLINICS_COLLECTION}/${entityId}/${CALENDAR_COLLECTION}`;
|
|
7621
7621
|
constraints.push((0, import_firestore30.where)("clinicBranchId", "==", entityId));
|
|
7622
7622
|
if (filters.clinicId && filters.clinicId !== entityId) {
|
|
7623
7623
|
console.warn(
|
package/dist/index.mjs
CHANGED
|
@@ -7666,7 +7666,7 @@ async function searchCalendarEventsUtil(db, params) {
|
|
|
7666
7666
|
"Clinic ID (entityId) is required when searching clinic-related events."
|
|
7667
7667
|
);
|
|
7668
7668
|
}
|
|
7669
|
-
baseCollectionPath = CALENDAR_COLLECTION
|
|
7669
|
+
baseCollectionPath = `${CLINICS_COLLECTION}/${entityId}/${CALENDAR_COLLECTION}`;
|
|
7670
7670
|
constraints.push(where17("clinicBranchId", "==", entityId));
|
|
7671
7671
|
if (filters.clinicId && filters.clinicId !== entityId) {
|
|
7672
7672
|
console.warn(
|
package/package.json
CHANGED
|
@@ -579,8 +579,8 @@ export async function searchCalendarEventsUtil(
|
|
|
579
579
|
"Clinic ID (entityId) is required when searching clinic-related events."
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
|
-
// Search the
|
|
583
|
-
baseCollectionPath = CALENDAR_COLLECTION
|
|
582
|
+
// Search the clinic's calendar collection
|
|
583
|
+
baseCollectionPath = `${CLINICS_COLLECTION}/${entityId}/${CALENDAR_COLLECTION}`;
|
|
584
584
|
constraints.push(where("clinicBranchId", "==", entityId));
|
|
585
585
|
// If clinicId filter is provided, it must match the entityId for this search location
|
|
586
586
|
if (filters.clinicId && filters.clinicId !== entityId) {
|