feat(MED-85): improve naming
This commit is contained in:
@@ -12,8 +12,8 @@ async function AnalysisPage({
|
|||||||
id: string;
|
id: string;
|
||||||
}>;
|
}>;
|
||||||
}) {
|
}) {
|
||||||
const { id } = await params;
|
const { id: analysisResponseId } = await params;
|
||||||
const analysisResultDetails = await loadResult(Number(id));
|
const analysisResultDetails = await loadResult(Number(analysisResponseId));
|
||||||
|
|
||||||
if (!analysisResultDetails) {
|
if (!analysisResultDetails) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ export async function getOtherResponses({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getAnalysisResultsForDoctor(
|
export async function getAnalysisResultsForDoctor(
|
||||||
id: number,
|
analysisResponseId: number,
|
||||||
): Promise<AnalysisResultDetails> {
|
): Promise<AnalysisResultDetails> {
|
||||||
const supabase = getSupabaseServerClient();
|
const supabase = getSupabaseServerClient();
|
||||||
|
|
||||||
@@ -367,7 +367,7 @@ export async function getAnalysisResultsForDoctor(
|
|||||||
`*,
|
`*,
|
||||||
analysis_responses(user_id, analysis_order_id(id,medusa_order_id, analysis_element_ids))`,
|
analysis_responses(user_id, analysis_order_id(id,medusa_order_id, analysis_element_ids))`,
|
||||||
)
|
)
|
||||||
.eq('analysis_response_id', id);
|
.eq('analysis_response_id', analysisResponseId);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
throw new Error('Something went wrong.');
|
throw new Error('Something went wrong.');
|
||||||
|
|||||||
Reference in New Issue
Block a user