fix: market upload sets status=pending by default
This commit is contained in:
+1
-1
@@ -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"},
|
data={"name": name, "category": category, "author": author, "version": "1.0.0", "status": "pending"},
|
||||||
files=files_httpx,
|
files=files_httpx,
|
||||||
)
|
)
|
||||||
return resp.json()
|
return resp.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user