File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
stac_fastapi/core/stac_fastapi/core Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ async def get_item(
377
377
378
378
@staticmethod
379
379
def _return_date (
380
- interval : Optional [Union [DateTimeType , str ]]
380
+ interval : Optional [Union [DateTimeType , str ]],
381
381
) -> Dict [str , Optional [str ]]:
382
382
"""
383
383
Convert a date interval.
@@ -724,15 +724,14 @@ async def update_item(
724
724
725
725
"""
726
726
item = item .model_dump (mode = "json" )
727
- base_url = str (kwargs ["request" ].base_url )
728
727
now = datetime_type .now (timezone .utc ).isoformat ().replace ("+00:00" , "Z" )
729
728
item ["properties" ]["updated" ] = now
730
729
731
730
await self .database .check_collection_exists (collection_id )
732
731
await self .delete_item (item_id = item_id , collection_id = collection_id )
733
- await self .create_item (collection_id = collection_id , item = Item ( ** item ), ** kwargs )
734
-
735
- return ItemSerializer . db_to_stac ( item , base_url )
732
+ return await self .create_item (
733
+ collection_id = collection_id , item = Item ( ** item ), ** kwargs
734
+ )
736
735
737
736
@overrides
738
737
async def delete_item (
You can’t perform that action at this time.
0 commit comments