diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 163cc01..124a466 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,6 +1,11 @@ name: CICD on: + push: + branches: + - 'main' + - 'dev' + - 'production' pull_request: types: [ opened, reopened, edited, synchronize ] diff --git a/api/src/vedaloader.py b/api/src/vedaloader.py index 594b1af..99e0010 100644 --- a/api/src/vedaloader.py +++ b/api/src/vedaloader.py @@ -30,18 +30,7 @@ def update_collection_summaries(self, collection_id: str) -> None: logger.info(f"Updating extents for collection: {collection_id}.") cur.execute( """ - UPDATE collections SET - content = content || - jsonb_build_object( - 'extent', jsonb_build_object( - 'spatial', jsonb_build_object( - 'bbox', collection_bbox(collections.id) - ), - 'temporal', jsonb_build_object( - 'interval', collection_temporal_extent(collections.id) - ) - ) - ) + UPDATE collections set content = content || pgstac.collection_extent(collections.id) WHERE collections.id=%s; """, (collection_id,),