feat: use publish_collectible before onsale_asset in upload flow
This commit is contained in:
+3
-1
@@ -202,7 +202,9 @@ async def reupload_asset(asset_id: int, _: str = Depends(verify_api_key)):
|
|||||||
)
|
)
|
||||||
|
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
collectible_item_id = await roblox_onsale.get_collectible_item_id(new_asset_id)
|
collectible_item_id = await roblox_onsale.publish_collectible(
|
||||||
|
new_asset_id, int(TARGET), asset.name, new_description
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
await roblox_onsale.onsale_asset(collectible_item_id)
|
await roblox_onsale.onsale_asset(collectible_item_id)
|
||||||
except RateLimitError:
|
except RateLimitError:
|
||||||
|
|||||||
Reference in New Issue
Block a user