Skip to content

fix(settings): handle malformed disappearing messages JSON - #184

Open
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/settings-disappearing-invalid-json
Open

fix(settings): handle malformed disappearing messages JSON#184
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/settings-disappearing-invalid-json

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • return a 400 response for malformed disappearing-message settings JSON
  • avoid treating client JSON syntax errors as generic internal server errors
  • add focused regression coverage that verifies no profile update runs for malformed JSON

Validation

  • git diff --check
  • node node_modules\vitest\vitest.mjs run --config $env:TEMP\qryptchat-vitest-minimal.config.mjs "src/app/api/settings/disappearing-messages/route.test.js" (6 tests)

Billing

  • uGig billable PR candidate: expected invoice $0.50 if accepted/merged
  • Not counted as revenue until paid/settled

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