Fix external account deletion through graphQL if no GitHub App accounts exist
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
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.
Added test confirming the bug, then fixed it.
Push commits to the source branch or add previously merged commits to review them.