Skip to content

Commit 5f7c4b0

Browse files
committed
fix: expecting json dict
1 parent a573582 commit 5f7c4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cumulus_lambda_functions/uds_api/collections_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def delete_single_collection(request: Request, collection_id: str):
337337
target='./collection.json',
338338
media_type='application/json', title=f"{new_collection.id} Granules")
339339
]
340-
creation_result = CollectionDapaCreation(new_collection).delete()
340+
creation_result = CollectionDapaCreation(new_collection.to_dict(False, False)).delete()
341341
except Exception as e:
342342
LOGGER.exception('failed during ingest_cnm_dapa')
343343
raise HTTPException(status_code=500, detail=str(e))

0 commit comments

Comments
 (0)