@blackcode_sa/metaestetics-api 1.4.11 → 1.4.12
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
|
@@ -3853,7 +3853,7 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3853
3853
|
name: validatedData.name,
|
|
3854
3854
|
logo: logoUrl,
|
|
3855
3855
|
// Use the uploaded logo URL or the original value
|
|
3856
|
-
description: isDefault ?
|
|
3856
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
3857
3857
|
hqLocation: {
|
|
3858
3858
|
address: validatedData.hqLocation.address || "",
|
|
3859
3859
|
city: validatedData.hqLocation.city || "",
|
|
@@ -3861,13 +3861,13 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3861
3861
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
3862
3862
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
3863
3863
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
3864
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
3864
|
+
geohash: validatedData.hqLocation.geohash || ""
|
|
3865
3865
|
},
|
|
3866
3866
|
contactInfo: {
|
|
3867
3867
|
email: validatedData.contactInfo.email || "",
|
|
3868
3868
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
3869
|
-
alternativePhoneNumber: isDefault ?
|
|
3870
|
-
website: isDefault ?
|
|
3869
|
+
alternativePhoneNumber: isDefault ? "" : validatedData.contactInfo.alternativePhoneNumber || "",
|
|
3870
|
+
website: isDefault ? "" : validatedData.contactInfo.website || ""
|
|
3871
3871
|
},
|
|
3872
3872
|
contactPerson: {
|
|
3873
3873
|
firstName: ((_a = validatedData.contactPerson) == null ? void 0 : _a.firstName) || "",
|
package/dist/index.mjs
CHANGED
|
@@ -3809,7 +3809,7 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3809
3809
|
name: validatedData.name,
|
|
3810
3810
|
logo: logoUrl,
|
|
3811
3811
|
// Use the uploaded logo URL or the original value
|
|
3812
|
-
description: isDefault ?
|
|
3812
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
3813
3813
|
hqLocation: {
|
|
3814
3814
|
address: validatedData.hqLocation.address || "",
|
|
3815
3815
|
city: validatedData.hqLocation.city || "",
|
|
@@ -3817,13 +3817,13 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3817
3817
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
3818
3818
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
3819
3819
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
3820
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
3820
|
+
geohash: validatedData.hqLocation.geohash || ""
|
|
3821
3821
|
},
|
|
3822
3822
|
contactInfo: {
|
|
3823
3823
|
email: validatedData.contactInfo.email || "",
|
|
3824
3824
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
3825
|
-
alternativePhoneNumber: isDefault ?
|
|
3826
|
-
website: isDefault ?
|
|
3825
|
+
alternativePhoneNumber: isDefault ? "" : validatedData.contactInfo.alternativePhoneNumber || "",
|
|
3826
|
+
website: isDefault ? "" : validatedData.contactInfo.website || ""
|
|
3827
3827
|
},
|
|
3828
3828
|
contactPerson: {
|
|
3829
3829
|
firstName: ((_a = validatedData.contactPerson) == null ? void 0 : _a.firstName) || "",
|
package/package.json
CHANGED
|
@@ -152,7 +152,7 @@ export async function createClinicGroup(
|
|
|
152
152
|
id: groupId,
|
|
153
153
|
name: validatedData.name,
|
|
154
154
|
logo: logoUrl, // Use the uploaded logo URL or the original value
|
|
155
|
-
description: isDefault ?
|
|
155
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
156
156
|
hqLocation: {
|
|
157
157
|
address: validatedData.hqLocation.address || "",
|
|
158
158
|
city: validatedData.hqLocation.city || "",
|
|
@@ -160,17 +160,15 @@ export async function createClinicGroup(
|
|
|
160
160
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
161
161
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
162
162
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
163
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
163
|
+
geohash: validatedData.hqLocation.geohash || "",
|
|
164
164
|
},
|
|
165
165
|
contactInfo: {
|
|
166
166
|
email: validatedData.contactInfo.email || "",
|
|
167
167
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
168
168
|
alternativePhoneNumber: isDefault
|
|
169
|
-
?
|
|
170
|
-
: validatedData.contactInfo.alternativePhoneNumber ||
|
|
171
|
-
website: isDefault
|
|
172
|
-
? undefined
|
|
173
|
-
: validatedData.contactInfo.website || undefined,
|
|
169
|
+
? ""
|
|
170
|
+
: validatedData.contactInfo.alternativePhoneNumber || "",
|
|
171
|
+
website: isDefault ? "" : validatedData.contactInfo.website || "",
|
|
174
172
|
},
|
|
175
173
|
contactPerson: {
|
|
176
174
|
firstName: validatedData.contactPerson?.firstName || "",
|