mirror of
https://github.com/sakaljurgis/best-choice.git
synced 2026-11-06 14:18:01 +00:00
edit price
This commit is contained in:
1 parent
0d97a497ea
commit
677a5a3272
6 files changed
+335
-40
No files matched your search
@@ -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
|
||||
`,
|
||||
|
||||
Reference in new issue
Block a user