Skip to content

Commit

Permalink
fix: change get username function (#361)
Browse files Browse the repository at this point in the history
Change Ingestion `created_by` param to use `get_username` auth function
  • Loading branch information
smohiudd authored Apr 26, 2024
2 parents 769c647 + 87b649f commit eb6a922
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ingest_api/runtime/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def list_ingestions(
)
async def enqueue_ingestion(
item: schemas.AccessibleItem,
username: str = Depends(auth.validated_token),
username: str = Depends(auth.get_username),
db: services.Database = Depends(dependencies.get_db),
) -> schemas.Ingestion:
"""
Expand Down
1 change: 0 additions & 1 deletion ingest_api/runtime/src/vedaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def update_collection_summaries(self, collection_id: str) -> None:
STAC-conformant bbox and temporal extent."""
with self.conn.cursor() as cur:
with self.conn.transaction():

# First update the spatial and temporal extents for all item records for the collection
logger.info(f"Updating extents for collection: {collection_id}.")
cur.execute(
Expand Down

0 comments on commit eb6a922

Please sign in to comment.