feat: publish_collectible in queue retry when no collectible_item_id

This commit is contained in:
2026-03-07 14:00:02 -05:00
parent 004366854e
commit e91c689ba0
+3 -1
View File
@@ -97,7 +97,9 @@ async def process_onsale_queue():
f"Retrying onsale for asset {item['asset_id']} (Attempt {item['retry_count'] + 1})" f"Retrying onsale for asset {item['asset_id']} (Attempt {item['retry_count'] + 1})"
) )
try: try:
collectible_item_id = item["collectible_item_id"] or await roblox_onsale.get_collectible_item_id(item["asset_id"]) collectible_item_id = item["collectible_item_id"] or await roblox_onsale.publish_collectible(
item["asset_id"], item["group_id"], item["name"], item["description"], price=5
)
await roblox_onsale.onsale_asset(collectible_item_id) await roblox_onsale.onsale_asset(collectible_item_id)
database.remove_from_onsale_queue(item["id"]) database.remove_from_onsale_queue(item["id"])
print( print(