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

Allow removing a user from an account even if it's their last account #786

Open
acco opened this issue Dec 27, 2024 — with Linear · 1 comment
Open

Allow removing a user from an account even if it's their last account #786

acco opened this issue Dec 27, 2024 — with Linear · 1 comment

Comments

Copy link
Contributor

acco commented Dec 27, 2024

Address this error. We can bump the user into a personal account if that's easiest:

** (Postgrex.Error) ERROR P0001 (raise_exception) User must have at least one associated account
    (ecto_sql 3.11.3) lib/ecto/adapters/sql.ex:1054: Ecto.Adapters.SQL.raise_sql_call_error/1
    (ecto 3.11.2) lib/ecto/repo/schema.ex:775: Ecto.Repo.Schema.apply/4
    (ecto 3.11.2) lib/ecto/repo/schema.ex:571: anonymous fn/13 in Ecto.Repo.Schema.do_delete/4
    (sequin 0.1.0) lib/sequin_web/live/settings/account_settings_live.ex:140: SequinWeb.Settings.AccountSettingsLive.handle_event/3
@girishramnani
Copy link
Contributor

So making the account personal should be the best move?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants