Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set email notifications bool correctly #10

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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