party-order delete ok,

This commit is contained in:
louiscklaw
2025-06-16 00:07:22 +08:00
parent 7370316ea0
commit db16b2d5dd
2 changed files with 5 additions and 5 deletions

View File

@@ -9,13 +9,13 @@ import { deleteOrder } from 'src/app/services/party-order.service';
*************************************** */
export async function PATCH(req: NextRequest) {
try {
const { orderId } = await req.json();
const { partyOrderId } = await req.json();
if (!orderId) throw new Error('orderId cannot be null');
if (!partyOrderId) throw new Error('orderId cannot be null');
await deleteOrder(orderId);
await deleteOrder(partyOrderId);
return response({ orderId }, STATUS.OK);
return response({ partyOrderId }, STATUS.OK);
} catch (error) {
return handleError('PartyOrder - Delete', error);
}

View File

@@ -4,5 +4,5 @@ PATCH http://localhost:7272/api/party-order/delete
Content-Type: application/json
{
"orderId": "e99f09a7-dd88-49d5-b1c8-1daf80c2d7b02"
"partyOrderId": "e99f09a7-dd88-49d5-b1c8-1daf80c2d7b02"
}