Skip to content

Commit

Permalink
Set email notifications bool correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Oct 11, 2024
1 parent 368540a commit d20a74c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixattiosync/fixresources.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FixUser:
auth_min_time: Optional[datetime] = None
workspaces: list[FixWorkspace] = field(default_factory=list)
workspace_roles: dict[UUID, FixRoles] = field(default_factory=dict)
user_email_notifications_disabled: Optional[bool] = None
user_email_notifications_disabled: Optional[bool] = False
at_least_one_cloud_account_connected: Optional[bool] = None
is_main_user_in_at_least_one_workspace: Optional[bool] = None
cloud_account_connected_workspace_name: Optional[str] = None
Expand Down Expand Up @@ -107,7 +107,7 @@ def attio_data(
if self.last_active_at is not None:
data["data"]["values"]["last_activity_3"] = self.last_active_at.isoformat()
if self.user_email_notifications_disabled is not None:
data["data"]["values"]["email_notifications_disabled"] = self.user_email_notifications_disabled
data["data"]["values"]["user_email_notifications_disabled"] = self.user_email_notifications_disabled
if self.at_least_one_cloud_account_connected is not None:
data["data"]["values"]["at_least_one_cloud_account_connected"] = self.at_least_one_cloud_account_connected
if self.is_main_user_in_at_least_one_workspace is not None:
Expand Down

0 comments on commit d20a74c

Please sign in to comment.