File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments