Skip to content

Commit 178ea59

Browse files
committed
patch not update for backend.
1 parent 2ce9e54 commit 178ea59

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

stac_fastapi/types/stac_fastapi/types/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def patch_item(
9797
if isinstance(patch, PartialItem):
9898
patch = patch.operations()
9999
100-
item = backend.update_item(collection_id, item_id, patch)
100+
item = backend.patch_item(collection_id, item_id, patch)
101101
102102
return item
103103
@@ -180,7 +180,7 @@ def patch_collection(
180180
if isinstance(patch, PartialCollection):
181181
patch = patch.operations()
182182
183-
collection = backend.update_item(collection_id, patch)
183+
collection = backend.patch_item(collection_id, patch)
184184
185185
return collection
186186
@@ -270,7 +270,7 @@ async def patch_item(
270270
if isinstance(patch, PartialItem):
271271
patch = patch.operations()
272272
273-
item = backend.update_item(collection_id, item_id, patch)
273+
item = backend.patch_item(collection_id, item_id, patch)
274274
275275
return item
276276
@@ -353,7 +353,7 @@ async def patch_collection(
353353
if isinstance(patch, PartialCollection):
354354
patch = patch.operations()
355355
356-
collection = backend.update_item(collection_id, patch)
356+
collection = backend.patch_item(collection_id, patch)
357357
358358
return collection
359359

0 commit comments

Comments
 (0)