@@ -14,7 +14,7 @@ cloudinary.config({
1414export const getOrderById = async (
1515 req : Request < { orderId : string } > ,
1616 res : Response ,
17- next : NextFunction ,
17+ _next : NextFunction ,
1818) : Promise < void > => {
1919 try {
2020 const orderData = await orderService . getOrderById ( req . params . orderId ) ;
@@ -33,7 +33,7 @@ export const getOrderById = async (
3333export const getBuyerOrders = async (
3434 req : Request < { buyerId : string } , unknown , unknown , { orderStatus ?: string } > ,
3535 res : Response ,
36- next : NextFunction ,
36+ _next : NextFunction ,
3737) : Promise < void > => {
3838 try {
3939 const buyerOrders = await orderService . getBuyerOrders (
@@ -56,7 +56,7 @@ export const getSellerOrders = async (
5656 { orderStatus ?: string ; productName ?: string }
5757 > ,
5858 res : Response ,
59- next : NextFunction ,
59+ _next : NextFunction ,
6060) : Promise < void > => {
6161 try {
6262 const sellerOrders = await orderService . getSellerOrders (
@@ -73,13 +73,9 @@ export const getSellerOrders = async (
7373} ;
7474
7575export const createOrder = async (
76- req : Request <
77- { productId : string } ,
78- unknown ,
79- orderService . CreateOrderInput
80- > ,
76+ req : Request < { productId : string } , unknown , orderService . CreateOrderInput > ,
8177 res : Response ,
82- next : NextFunction ,
78+ _next : NextFunction ,
8379) : Promise < void > => {
8480 try {
8581 const buyerId =
@@ -103,13 +99,9 @@ export const createOrder = async (
10399} ;
104100
105101export const updateOrder = async (
106- req : Request <
107- { orderId : string } ,
108- unknown ,
109- orderService . UpdateOrderInput
110- > ,
102+ req : Request < { orderId : string } , unknown , orderService . UpdateOrderInput > ,
111103 res : Response ,
112- next : NextFunction ,
104+ _next : NextFunction ,
113105) : Promise < void > => {
114106 try {
115107 const result = await orderService . updateOrder (
@@ -131,7 +123,7 @@ export const updateOrder = async (
131123export const getTransaction = async (
132124 req : Request < { orderId : string } > ,
133125 res : Response ,
134- next : NextFunction ,
126+ _next : NextFunction ,
135127) : Promise < void > => {
136128 try {
137129 const transaction = await orderService . getTransactionByOrderId (
@@ -153,11 +145,7 @@ export const getTransaction = async (
153145} ;
154146
155147export const updateDispatchDetails = async (
156- req : Request <
157- { orderId : string } ,
158- unknown ,
159- orderService . DispatchDetailsInput
160- > ,
148+ req : Request < { orderId : string } , unknown , orderService . DispatchDetailsInput > ,
161149 res : Response ,
162150 next : NextFunction ,
163151) : Promise < void > => {
0 commit comments