Skip to content

Commit 4cece47

Browse files
committed
shop items 1 = 20
1 parent b0573b8 commit 4cece47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/shopItems.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export async function ensureShopItemsTable() {
6060

6161
await pool.query(`
6262
UPDATE shop_items
63-
SET price = CEIL(price_usd * 10)
63+
SET price = CEIL(price_usd * 20)
6464
WHERE price_usd IS NOT NULL
65-
AND (price IS NULL OR price != CEIL(price_usd * 10))
65+
AND (price IS NULL OR price != CEIL(price_usd * 20))
6666
`);
6767

6868
for (const column of REMOVED_SHOP_ITEM_COLUMNS) {
@@ -300,7 +300,7 @@ function normalizeShopItemInput(input = {}) {
300300
const price = integerOrNull(input.price);
301301
return {
302302
name: textOrNull(input.name),
303-
price: price ?? (priceUsd === null ? null : Math.ceil(priceUsd * 10)),
303+
price: price ?? (priceUsd === null ? null : Math.ceil(priceUsd * 20)),
304304
itemLink: safeHttpUrl(input.itemLink ?? input.item_link),
305305
imageUrl: safeHttpUrl(input.imageUrl ?? input.image_url),
306306
description: textOrNull(input.description),

0 commit comments

Comments
 (0)