diff --git a/server/src/utils/syncPrice.ts b/server/src/utils/syncPrice.ts index 718e8929..09fab1e8 100644 --- a/server/src/utils/syncPrice.ts +++ b/server/src/utils/syncPrice.ts @@ -8,7 +8,7 @@ import { RowDataPacket } from 'mysql2' */ export async function syncProductMinPrice(productId: number, conn?: any): Promise { const db = conn || pool - const [rows] = await db.execute( + const [rows]: any = await db.execute( 'SELECT MIN(total_price) as min_price FROM spec_data WHERE product_id = ?', [productId] )