Skip to content

feat: implement #732, #733, #734, #735 - prisma errors, reactivation token#847

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
demilade18-git:feat/demilade18-git-issues
Jun 29, 2026
Merged

feat: implement #732, #733, #734, #735 - prisma errors, reactivation token#847
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
demilade18-git:feat/demilade18-git-issues

Conversation

@demilade18-git

Copy link
Copy Markdown
Contributor

Closes #732, Closes #733, Closes #734, Closes #735

#732 - Map P2025 to NotFoundException

Already implemented - generateReport catches P2025 and throws NotFoundException.

#733 - Map other Prisma errors to InternalServerErrorException

Already implemented - all unexpected errors throw InternalServerErrorException with redacted message.

#734 - Remove error.message string-matching

Already implemented - uses error.code === P2025 instead of string matching.

#735 - Require signed, hash-stored token for reactivation

Added requestReactivation() endpoint that generates a SHA-256 signed token. Modified reactivate() to verify the token using crypto.timingSafeEqual constant-time comparison. Token stored as hash in the database, expires after 24h.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@demilade18-git Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit nanaf6203-bit merged commit c9d72f0 into MettaChain:main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants