update naming to be clearer
This commit is contained in:
@@ -5,7 +5,7 @@ import type { StoreOrder } from '@medusajs/types';
|
||||
|
||||
export type AnalysisOrder = Tables<{ schema: 'medreport' }, 'analysis_orders'>;
|
||||
|
||||
export async function createOrder({
|
||||
export async function createAnalysisOrder({
|
||||
medusaOrder,
|
||||
orderedAnalysisElements,
|
||||
}: {
|
||||
@@ -38,7 +38,7 @@ export async function createOrder({
|
||||
return orderResult.data.id;
|
||||
}
|
||||
|
||||
export async function updateOrder({
|
||||
export async function updateAnalysisOrder({
|
||||
orderId,
|
||||
orderStatus,
|
||||
}: {
|
||||
@@ -56,7 +56,7 @@ export async function updateOrder({
|
||||
.throwOnError();
|
||||
}
|
||||
|
||||
export async function updateOrderStatus({
|
||||
export async function updateAnalysisOrderStatus({
|
||||
orderId,
|
||||
medusaOrderId,
|
||||
orderStatus,
|
||||
@@ -80,7 +80,7 @@ export async function updateOrderStatus({
|
||||
.throwOnError();
|
||||
}
|
||||
|
||||
export async function getOrder({
|
||||
export async function getAnalysisOrder({
|
||||
medusaOrderId,
|
||||
orderId,
|
||||
}: {
|
||||
|
||||
Reference in New Issue
Block a user