Skip to content

Fix external account deletion through graphQL if no GitHub App accounts exist

Warren Gifford requested to merge pjlast/github-app-delete-fix into main

Created by: pjlast

When a GitHub external account is deleted, but there are no corresponding GitHub App external accounts, the account list is empty, which causes a SQL error.

What this means is that you're unable to delete your normal GitHub external accounts.

This fixes that.

Test plan

Added test confirming the bug, then fixed it.

Merge request reports

Loading