This commit is contained in:
18631081161 2026-04-06 19:50:50 +08:00
parent 625b852004
commit 9a4d04cbe0

View File

@ -8,7 +8,7 @@ import { RowDataPacket } from 'mysql2'
*/
export async function syncProductMinPrice(productId: number, conn?: any): Promise<void> {
const db = conn || pool
const [rows] = await db.execute<RowDataPacket[]>(
const [rows]: any = await db.execute(
'SELECT MIN(total_price) as min_price FROM spec_data WHERE product_id = ?',
[productId]
)