Skip to content

Commit b089e6d

Browse files
authored
Merge pull request #236 from pedro-cf/bugfix-create_item_links
core create_item fix
2 parents c8a07ae + 3d3519d commit b089e6d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- 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)
13+
1014
## [v2.3.0]
1115

1216
### Changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ async def create_item(
677677
else:
678678
item = await self.database.prep_create_item(item=item, base_url=base_url)
679679
await self.database.create_item(item, refresh=kwargs.get("refresh", False))
680-
return item
680+
return ItemSerializer.db_to_stac(item, base_url)
681681

682682
@overrides
683683
async def update_item(

0 commit comments

Comments
 (0)