Skip to content

A membership row outlives the account the clean up removes #139

Description

@SirLouen

The hourly clean up deletes an invited account whose invitation expired. The row that placed that account in a tenant stays, because the membership table has no foreign key to the accounts table. The tenant's member count is then one too high, and the stale row is never removed.

The membership should go when the account goes, either through a foreign key that cascades or through a sweep in the clean up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions