fix: use dashb_pending field name for upload approval

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