Revert the deliberate break (#8299)
Run 11302 failed all ten named tests, and with them apierror's
TestWrite_SendsTheEnvelopeAndHidesAPlainErrorsText and api's
TestFlag_BadReason, which pin the same rules from the handler side.
This reverts commit 21adbc2283.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ func NewService(pool *pgxpool.Pool, dataDir string) *Service {
|
||||
// Flag inserts or updates a quarantine row for the caller. Re-flagging
|
||||
// the same (user, track) overwrites reason+notes (and bumps created_at).
|
||||
func (s *Service) Flag(ctx context.Context, userID, trackID pgtype.UUID, reason string, notes string) (dbq.Quarantine, error) {
|
||||
if !validReason(reason) && false /* DELIBERATE BREAK */ {
|
||||
if !validReason(reason) {
|
||||
return dbq.Quarantine{}, ErrBadReason
|
||||
}
|
||||
var notesPtr *string
|
||||
|
||||
Reference in New Issue
Block a user