"fix: update party order details route variable naming and test case ID"
This commit is contained in:
@@ -37,17 +37,17 @@ export async function GET(req: NextRequest) {
|
||||
}
|
||||
|
||||
// NOTE: partyOrderId confirmed exist, run below
|
||||
const order = await getOrder(partyOrderId);
|
||||
const partyOrder = await getOrder(partyOrderId);
|
||||
|
||||
if (!order) {
|
||||
if (!partyOrder) {
|
||||
return response({ message: 'Order not found!' }, STATUS.NOT_FOUND);
|
||||
}
|
||||
|
||||
logger('[PartyOrder] details', order.id);
|
||||
logger('[PartyOrder] details', partyOrder.id);
|
||||
|
||||
createAppLog(L_INFO, 'Get order detail OK', debug);
|
||||
|
||||
return response({ order }, STATUS.OK);
|
||||
return response({ partyOrder }, STATUS.OK);
|
||||
} catch (error) {
|
||||
createAppLog(L_ERROR, 'order detail error', debug);
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
###
|
||||
|
||||
# Get details for a specific party order
|
||||
GET http://localhost:7272/api/party-order/details?partyOrderId=e99f09a7-dd88-49d5-b1c8-1daf80c2d7b02
|
||||
GET http://localhost:7272/api/party-order/details?partyOrderId=e99f09a7-dd88-49d5-b1c8-1daf80c2d7b13
|
||||
|
||||
###
|
||||
|
||||
|
Reference in New Issue
Block a user