File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
stac_fastapi/core/stac_fastapi/core Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -693,10 +693,7 @@ async def create_item(
693693 NotFoundError: If the specified collection is not found in the database.
694694 ConflictError: If an item with the same ID already exists in the collection.
695695 """
696- # Ensure request is present
697696 request = kwargs .get ("request" )
698- if not request :
699- raise ValueError ("Request must be provided in kwargs" )
700697 base_url = str (request .base_url )
701698
702699 # Convert Pydantic model to dict for uniform processing
@@ -935,9 +932,6 @@ def bulk_item_insert(
935932 # Immediately raise on the first invalid item (strict mode)
936933 raise
937934
938- if not processed_items :
939- return "No valid items to insert."
940-
941935 collection_id = processed_items [0 ]["collection" ]
942936 attempted = len (processed_items )
943937 success , errors = self .database .bulk_sync (
You can’t perform that action at this time.
0 commit comments