Skip to content

Commit be4962f

Browse files
committed
patch_collection not patch_item.
1 parent 178ea59 commit be4962f

File tree

1 file changed

+2
-2
lines changed
  • stac_fastapi/types/stac_fastapi/types

1 file changed

+2
-2
lines changed

stac_fastapi/types/stac_fastapi/types/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def patch_collection(
180180
if isinstance(patch, PartialCollection):
181181
patch = patch.operations()
182182
183-
collection = backend.patch_item(collection_id, patch)
183+
collection = backend.patch_collection(collection_id, patch)
184184
185185
return collection
186186
@@ -353,7 +353,7 @@ async def patch_collection(
353353
if isinstance(patch, PartialCollection):
354354
patch = patch.operations()
355355
356-
collection = backend.patch_item(collection_id, patch)
356+
collection = backend.patch_collection(collection_id, patch)
357357
358358
return collection
359359

0 commit comments

Comments
 (0)