Skip to content

Commit f0576ea

Browse files
committed
fix
1 parent 6172893 commit f0576ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

target_notion/sinks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ def get_data_source_schema(self) -> dict:
104104
Returns:
105105
dict: The data_source schema.
106106
"""
107-
db = self.client.data_sources.retrieve(self.data_source_id)
108-
data_source_id = db["data_sources"][0]["id"]
109-
data_source = self.client.data_sources.retrieve(data_source_id)
107+
data_source = self.client.data_sources.retrieve(self.data_source_id)
110108
return {
111109
snakecase(name): {"name": name, "type": _property["type"]}
112110
for name, _property in data_source["properties"].items()

0 commit comments

Comments
 (0)