Skip to content

Commit d76d703

Browse files
authored
added this to make it safer at inserts when not enabled (#1876)
1 parent 7cde4cc commit d76d703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/robusta/core/sinks/robusta/dal/supabase_dal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def get_active_namespaces(self) -> List[NamespaceInfo]:
586586
return [NamespaceInfo.from_db_row(namespace) for namespace in res.data]
587587

588588
def __to_db_namespace(self, namespace: NamespaceInfo) -> Dict[Any, Any]:
589-
db_job = namespace.dict()
589+
db_job = namespace.dict(exclude_none=True)
590590
db_job["account_id"] = self.account_id
591591
db_job["cluster_id"] = self.cluster
592592
db_job["updated_at"] = "now()"

0 commit comments

Comments
 (0)