From 7db114900ad1c49384ed6686cabaa1641e2dc4c3 Mon Sep 17 00:00:00 2001 From: Brandon Rose Date: Mon, 17 Jul 2023 10:01:36 -0400 Subject: [PATCH] Fix artifact save (#284) --- tds/modules/artifact/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tds/modules/artifact/controller.py b/tds/modules/artifact/controller.py index f312c3fd1..0434c378f 100644 --- a/tds/modules/artifact/controller.py +++ b/tds/modules/artifact/controller.py @@ -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,