fix: market upload sets status=pending by default

This commit is contained in:
2026-07-26 20:54:37 +08:00
parent 70df32bb07
commit 91ee54c2c5
+1 -1
View File
@@ -550,7 +550,7 @@ async def api_market_upload(file: UploadFile = File(...), name: str = "", catego
resp = await client.post(
f"{url}/api/collections/dashboards/records",
headers={"Authorization": f"Bearer {token}"},
data={"name": name, "category": category, "author": author, "version": "1.0.0"},
data={"name": name, "category": category, "author": author, "version": "1.0.0", "status": "pending"},
files=files_httpx,
)
return resp.json()