edit price

This commit is contained in:
Jurgis Sakalauskas
2025-10-14 16:47:20 +03:00
parent 0d97a497ea
commit 677a5a3272
6 changed files with 335 additions and 40 deletions
+2 -3
View File
@@ -179,11 +179,10 @@ export const updateItemPrice = async (
try {
await client.query('BEGIN');
const existingResult = await client.query<ItemPriceRow>(
const existingResult = await client.query<{ id: string }>(
`
SELECT ${priceColumns}
SELECT p.id
FROM item_prices p
LEFT JOIN urls u ON u.id = p.source_url_id
WHERE p.id = $1
FOR UPDATE
`,