bandada icon indicating copy to clipboard operation
bandada copied to clipboard

Getting a `QueryFailedError` when deleting a Group with at least one Invite

Open 0xjei opened this issue 10 months ago • 0 comments

Problem

When we try to delete a group after we have generated an invite and used it to add a member, we get the following error

QueryFailedError: update or delete on table "groups" violates foreign key constraint "invites_group_id_fkey" on table "invites".

Reproduce

We noticed that this is happening on the prod instance of Bandada, while locally/staging works fine. We should investigate more how the past events relate to the latest ones (maybe is a matter of AWS / db schema update).

0xjei avatar Apr 10 '24 10:04 0xjei