MED-89: add analysis view with doctor summary (#68)

* add analysis view with doctor summary

* remove console.log, also return null if analysis data missing

* replace orders table eye with button
This commit is contained in:
Helena
2025-09-02 12:18:18 +03:00
committed by GitHub
parent 9d62a2d86f
commit b7926f79a9
14 changed files with 284 additions and 179 deletions

View File

@@ -656,6 +656,12 @@ export async function submitFeedback(
.eq('id', analysisOrderId)
.limit(1)
.throwOnError(),
supabase
.schema('medreport')
.from('analysis_orders')
.update({ status: 'COMPLETED' })
.eq('id', analysisOrderId)
.throwOnError(),
]);
if (!recipient?.[0]?.email) {
@@ -674,7 +680,7 @@ export async function submitFeedback(
language: preferred_locale ?? 'et',
recipientName: getFullName(name, last_name),
orderNr: analysisOrder?.[0]?.medusa_order_id ?? '',
orderId: analysisOrder[0].id,
analysisOrderId: analysisOrder[0].id,
},
email,
);