Skip to content

Fix admin blacklist insert BlacklistReportSource cast - #138

Merged
owens1127 merged 1 commit into
mainfrom
hotfix/blacklist-report-source-enum
Jun 13, 2026
Merged

Fix admin blacklist insert BlacklistReportSource cast#138
owens1127 merged 1 commit into
mainfrom
hotfix/blacklist-report-source-enum

Conversation

@owens1127

Copy link
Copy Markdown
Contributor

Summary

  • Fixes PUT /admin/reporting/blacklist/:instanceId failing with type "BlacklistReportSource" does not exist in production
  • Removes the unqualified ::"BlacklistReportSource" cast and lets Postgres coerce report_source from the column type
  • Schema-qualifies blacklist writes to flagging.blacklist_instance and flagging.blacklist_instance_player

Fixes https://raidhub.sentry.io/issues/7548840538/

Test plan

  • ESLint passes (pre-commit hook)
  • CI test workflow passes
  • Verify PUT /admin/reporting/blacklist/:instanceId succeeds in production after deploy

Made with Cursor

The PUT /admin/reporting/blacklist endpoint errored in production because
the query cast to an unqualified enum type. Use schema-qualified tables and
let Postgres coerce report_source from the column type instead.

Fixes RAIDHUB-API-7548840538

Co-authored-by: Cursor <cursoragent@cursor.com>
@barecheck

barecheck Bot commented Jun 13, 2026

Copy link
Copy Markdown

Barecheck - Code coverage report

Total: 90.85%

Your code coverage diff: -0.04% ▾

Uncovered files and lines
FileLines
src/services/reporting/update-blacklist.ts3-39, 43-57

@owens1127
owens1127 merged commit f444db3 into main Jun 13, 2026
7 checks passed
@owens1127
owens1127 deleted the hotfix/blacklist-report-source-enum branch June 13, 2026 14:30
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 this pull request may close these issues.

1 participant