Repository navigation
fix: resolve issues #50, #51, #52, #53 - #149
Merged
Busiii-adetiba merged 2 commits intoOct 20, 2026
Merged
Conversation
…ynapsVault#53 SynapsVault#50 — Admin delist audit record - adminDelistResource writes a moderation_events row with action, resource id, optional reason, and actor (admin key digest) - admin.ts POST /admin/delist/:id passes reason + actor to service - schema.ts: moderationEvents table added - drizzle/0012_moderation_events.sql: migration for new table SynapsVault#51 — Admin delist lock flag - handleSetListedEvent: guards re-listing with isNull(adminDelistedAt) so chain sync cannot undo an admin delist (listing=false still allowed) - verify.ts: pre-payment check already blocks admin-delisted resources and the UPDATE WHERE clause includes isNull(adminDelistedAt) SynapsVault#52 — /debug/db route security - health.ts: /debug/db returns 404 unless ENABLE_DEBUG_ROUTES=true and requires X-Admin-Key matching ADMIN_API_KEY (constant-time compare) SynapsVault#53 — uncaughtException process exit - index.ts: uncaughtException handler flushes Sentry (2 s timeout) then calls process.exit(1) so the platform can restart the service Tests - src/routes/admin.test.ts: fixed router mount path, db mock chain, and module isolation; all 9 tests pass - src/services/resourceService.admin-delist.test.ts: added workerQueue mock, corrected createFileResource signature; all 7 tests pass - src/workers/eventListener.admin-lock.test.ts: rewrote to eliminate conflicting double vi.mock for db/client; all 6 tests pass - src/index.uncaught.test.ts: new file; 1 test passes .gitignore updated with test snapshot patterns, editor/OS files, and build artefacts to keep the branch clean.
|
@villadel is attempting to deploy a commit to the work Team on Vercel. A member of the Team first needs to authorize it. |
|
@villadel 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#50 — Admin delist audit record
#51 — Admin delist lock flag
#52 — /debug/db route security
#53 — uncaughtException process exit
Tests
.gitignore updated with test snapshot patterns, editor/OS files, and build artefacts to keep the branch clean.
close #50
close #51
close #52
close #53