@blackcode_sa/metaestetics-api 1.7.31 → 1.7.32
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
|
@@ -5548,7 +5548,7 @@ var PractitionerService = class extends BaseService {
|
|
|
5548
5548
|
if (!practitioner) {
|
|
5549
5549
|
throw new Error(`Practitioner ${practitionerId} not found`);
|
|
5550
5550
|
}
|
|
5551
|
-
if (!practitioner.isActive
|
|
5551
|
+
if (!practitioner.isActive) {
|
|
5552
5552
|
throw new Error(`Practitioner ${practitionerId} is not active`);
|
|
5553
5553
|
}
|
|
5554
5554
|
const clinic = await this.getClinicService().getClinic(clinicId);
|
package/dist/index.mjs
CHANGED
|
@@ -5452,7 +5452,7 @@ var PractitionerService = class extends BaseService {
|
|
|
5452
5452
|
if (!practitioner) {
|
|
5453
5453
|
throw new Error(`Practitioner ${practitionerId} not found`);
|
|
5454
5454
|
}
|
|
5455
|
-
if (!practitioner.isActive
|
|
5455
|
+
if (!practitioner.isActive) {
|
|
5456
5456
|
throw new Error(`Practitioner ${practitionerId} is not active`);
|
|
5457
5457
|
}
|
|
5458
5458
|
const clinic = await this.getClinicService().getClinic(clinicId);
|
package/package.json
CHANGED
|
@@ -1226,10 +1226,7 @@ export class PractitionerService extends BaseService {
|
|
|
1226
1226
|
throw new Error(`Practitioner ${practitionerId} not found`);
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
if (
|
|
1230
|
-
!practitioner.isActive ||
|
|
1231
|
-
practitioner.status !== PractitionerStatus.ACTIVE
|
|
1232
|
-
) {
|
|
1229
|
+
if (!practitioner.isActive) {
|
|
1233
1230
|
throw new Error(`Practitioner ${practitionerId} is not active`);
|
|
1234
1231
|
}
|
|
1235
1232
|
|