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

When Deleting a non-empty category you get an http 500 error #1117

Closed
MathMan05 opened this issue May 24, 2024 · 0 comments · Fixed by #1121
Closed

When Deleting a non-empty category you get an http 500 error #1117

MathMan05 opened this issue May 24, 2024 · 0 comments · Fixed by #1121

Comments

@MathMan05
Copy link

Describe the bug
When Deleting a non-empty category you get an http 500 error

To Reproduce
Make a DELETE request to "api.old.server.spacebar.chat/api/v9/channels/"+categoryID where the category in question isn't empty

Expected behavior
It should delete, instead you get an 500 Internal Server Error

{
    "code": 500,
    "message": "QueryFailedError: update or delete on table \"channels\" violates foreign key constraint \"FK_3274522d14af40540b1a883fc80\" on table \"channels\""
}

Additional context
This is running off of jank client, but it works just fine when jank client is deleting non-empty categories or channels

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

Successfully merging a pull request may close this issue.

1 participant