diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d4aab32..9deead23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fixed `POST /collections/test-collection/items` returning an item with an empty links array [#236](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/236) + ## [v2.3.0] ### Changed diff --git a/stac_fastapi/core/stac_fastapi/core/core.py b/stac_fastapi/core/stac_fastapi/core/core.py index 936b2553..053c8395 100644 --- a/stac_fastapi/core/stac_fastapi/core/core.py +++ b/stac_fastapi/core/stac_fastapi/core/core.py @@ -677,7 +677,7 @@ async def create_item( else: item = await self.database.prep_create_item(item=item, base_url=base_url) await self.database.create_item(item, refresh=kwargs.get("refresh", False)) - return item + return ItemSerializer.db_to_stac(item, base_url) @overrides async def update_item(