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