feature: phase0 - Global patients + mobile normalization
This commit is contained in:
@@ -549,9 +549,9 @@ export class TreatmentsService {
|
||||
]);
|
||||
}
|
||||
|
||||
private async ensurePatientInOrg(patientId: string, organizationId: string) {
|
||||
const patient = await this.prisma.patient.findFirst({
|
||||
where: { id: patientId, organizationId },
|
||||
private async ensurePatientInOrg(patientId: string, _organizationId: string) {
|
||||
const patient = await this.prisma.patient.findUnique({
|
||||
where: { id: patientId },
|
||||
select: { id: true },
|
||||
});
|
||||
if (!patient) {
|
||||
|
||||
Reference in New Issue
Block a user