Skip to content

Commit 50f655a

Browse files
authored
Merge pull request #112 from asperpharma/copilot/fix-code-formatting-issues
Remove unnecessary `as any` casts on Supabase `cod_orders` queries
2 parents 782b33c + 5c311a5 commit 50f655a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/pages/AdminOrders.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

src/pages/DriverDashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)