统一前后端代码格式化配置
This commit is contained in:
@@ -204,6 +204,8 @@ async function listOrderItemsByOrderIdWithExecutor(
|
||||
}
|
||||
|
||||
export async function getOrderItemById(orderItemId: number | string): Promise<OrderItemRow | null> {
|
||||
const result = await query<OrderItemRow>('SELECT * FROM order_items WHERE id = $1 LIMIT 1', [Number(orderItemId)])
|
||||
const result = await query<OrderItemRow>('SELECT * FROM order_items WHERE id = $1 LIMIT 1', [
|
||||
Number(orderItemId),
|
||||
])
|
||||
return result.rows[0] || null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user