Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Fix artifact save (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandomr authored Jul 17, 2023
1 parent 93fd013 commit 7db1149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tds/modules/artifact/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def artifact_put(artifact_id: str, payload: Artifact) -> JSONResponse | Response
Update a artifact in ElasticSearch
"""
try:
res = payload.save(artifact_id)
payload.id = artifact_id
res = payload.save()
logger.info("artifact updated: %s", res["_id"])
return JSONResponse(
status_code=status.HTTP_200_OK,
Expand Down

0 comments on commit 7db1149

Please sign in to comment.