Skip to content

Commit eb6a922

Browse files
authored
fix: change get username function (#361)
Change Ingestion `created_by` param to use `get_username` auth function
2 parents 769c647 + 87b649f commit eb6a922

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ingest_api/runtime/src/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def list_ingestions(
6363
)
6464
async def enqueue_ingestion(
6565
item: schemas.AccessibleItem,
66-
username: str = Depends(auth.validated_token),
66+
username: str = Depends(auth.get_username),
6767
db: services.Database = Depends(dependencies.get_db),
6868
) -> schemas.Ingestion:
6969
"""

ingest_api/runtime/src/vedaloader.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def update_collection_summaries(self, collection_id: str) -> None:
2020
STAC-conformant bbox and temporal extent."""
2121
with self.conn.cursor() as cur:
2222
with self.conn.transaction():
23-
2423
# First update the spatial and temporal extents for all item records for the collection
2524
logger.info(f"Updating extents for collection: {collection_id}.")
2625
cur.execute(

0 commit comments

Comments
 (0)