Skip to content

Commit 3713990

Browse files
moar
1 parent 0af2dd1 commit 3713990

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/workos/authorization.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,9 @@ def create_resource(
515515
"organization_id": organization_id,
516516
"external_id": external_id,
517517
"name": name,
518-
**(parent or {}),
519518
}
519+
if parent is not None:
520+
json.update(parent)
520521
if description is not None:
521522
json["description"] = description
522523

@@ -868,8 +869,9 @@ async def create_resource(
868869
"organization_id": organization_id,
869870
"external_id": external_id,
870871
"name": name,
871-
**(parent or {}),
872872
}
873+
if parent is not None:
874+
json.update(parent)
873875
if description is not None:
874876
json["description"] = description
875877

0 commit comments

Comments
 (0)