File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -356,9 +356,9 @@ export default function AdminOrders() {
356356 const updateOrderStatus = async ( orderId : string , newStatus : string ) => {
357357 setIsUpdating ( orderId ) ;
358358 try {
359- const { error } = await ( supabase as any )
359+ const { error } = await supabase
360360 . from ( "cod_orders" )
361- . update ( { status : newStatus } as never )
361+ . update ( { status : newStatus } )
362362 . eq ( "id" , orderId ) ;
363363
364364 if ( error ) throw error ;
Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ export default function DriverDashboard() {
196196 updateData . delivered_at = new Date ( ) . toISOString ( ) ;
197197 }
198198
199- const { error } = await ( supabase as any )
199+ const { error } = await supabase
200200 . from ( "cod_orders" )
201- . update ( updateData as never )
201+ . update ( updateData )
202202 . eq ( "id" , orderId ) ;
203203
204204 if ( error ) throw error ;
You can’t perform that action at this time.
0 commit comments