@@ -35,6 +35,8 @@ let MarketListingService = class MarketListingService {
3535 updated_at : row . updated_at ,
3636 sold_at : row . sold_at || undefined ,
3737 buyer_id : row . buyer_id || undefined ,
38+ rarity : row . rarity || 'common' ,
39+ custom_url_link : row . custom_url_link || undefined
3840 } ;
3941 return listing ;
4042 } ;
@@ -68,7 +70,9 @@ let MarketListingService = class MarketListingService {
6870 status : 'active' ,
6971 metadata : inventoryItem . metadata ,
7072 created_at : now ,
71- updated_at : now
73+ updated_at : now ,
74+ rarity : inventoryItem . rarity || 'common' ,
75+ custom_url_link : inventoryItem . custom_url_link || undefined
7276 } ;
7377 try {
7478 // 1. Ajouter l'ordre de vente (correction: utiliser create au lieu de read)
@@ -151,7 +155,9 @@ let MarketListingService = class MarketListingService {
151155 amount : 1 ,
152156 metadata : Object . keys ( metadata ) . length > 0 ? metadata : undefined ,
153157 sellable : true ,
154- purchasePrice : listing . purchasePrice || undefined
158+ purchasePrice : listing . purchasePrice || undefined ,
159+ rarity : listing . rarity ,
160+ custom_url_link : listing . custom_url_link || undefined
155161 } ;
156162 await this . addItemToInventory ( inventoryItem ) ;
157163 }
@@ -195,7 +201,9 @@ let MarketListingService = class MarketListingService {
195201 amount : 1 ,
196202 metadata : listing . metadata ,
197203 sellable : true ,
198- purchasePrice : listing . purchasePrice || undefined
204+ purchasePrice : listing . purchasePrice || undefined ,
205+ rarity : listing . rarity || "common" ,
206+ custom_url_link : listing . custom_url_link
199207 } ;
200208 await this . addItemToInventory ( inventoryItem ) ;
201209 return { ...listing , status : 'sold' , buyer_id : buyerId , sold_at : now } ;
0 commit comments