From 830a25b9fe48fad6ef2ee4c6b6bac2a319aa7c30 Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Wed, 17 Mar 2021 15:01:35 -0600
Subject: [PATCH] Return metadata from PUT

---
 geomagio/api/secure/metadata.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/geomagio/api/secure/metadata.py b/geomagio/api/secure/metadata.py
index 7126a1ac..6435d826 100644
--- a/geomagio/api/secure/metadata.py
+++ b/geomagio/api/secure/metadata.py
@@ -91,5 +91,6 @@ async def update_metadata(
     id: int,
     metadata: Metadata = Body(...),
     user: User = Depends(require_user([os.getenv("REVIEWER_GROUP", "reviewer")])),
-):
+) -> Metadata:
     await metadata_table.update_metadata(metadata)
+    return metadata
-- 
GitLab