.
This commit is contained in:
parent
625b852004
commit
9a4d04cbe0
|
|
@ -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]
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user