Skip to content

content - #1540

Merged
aji70 merged 2 commits into
MyFanss:mainfrom
Emeka000:verification
Jul 27, 2026
Merged

content#1540
aji70 merged 2 commits into
MyFanss:mainfrom
Emeka000:verification

Conversation

@Emeka000

@Emeka000 Emeka000 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Body:

Summary
Registers FavoritesModule, FeedModule, and CommentsModule in app.module.ts — all three were fully implemented (entities, services, controllers, DTOs, guards, tests) but never imported into the app, so their endpoints didn't actually exist at runtime.
Registers the CreateFavorites and AddCommentSoftDeleteAndAudit migrations in migration.datasource.ts for the same reason.
Fixes favorites.controller.spec.ts and feed.controller.spec.ts, which failed to compile their TestingModule because ThrottlerGuard's dependency (ThrottlerModule) wasn't provided — brought them in line with the working pattern already used in comments.controller.spec.ts.
Closes
closes #1436 — Backend: Implement favorites API matching frontend contract
closes #1435 — Backend: Add personalized fan feed endpoint
closes #1434 — Backend: Add comment soft-delete and audit parity with posts
closes #1437
Verification
npx jest favorites feed comments — 10/10 suites, 139/139 tests passing
Confirmed GET/POST/DELETE /v1/favorites, GET /v1/feed/subscriptions, and comment soft-delete (deletedAt + CommentAuditLog) all guarded by JwtAuthGuard
Confirmed NotFoundException thrown for missing creator/favorite targets (404 per acceptance criteria)
Test plan
Run full backend test suite in CI
Run npm run migration:run against a scratch DB to confirm the two new migrations apply cleanly
Smoke-test /v1/favorites and /v1/feed/subscriptions against a running instanc

@aji70
aji70 merged commit 85378b0 into MyFanss:main Jul 27, 2026
2 of 8 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

2 participants