The commentsRouter.create mutation contains too much inline logic and should delegate to a repository.
File: src/server/api/routers/listings/comments.ts line 27
Action required:
- Create a
CommentsRepository (or extend ListingsRepository) to encapsulate comment creation logic.
- Update the router to call the repository method.
Requested by @Producdevity — related to PR #375
The
commentsRouter.createmutation contains too much inline logic and should delegate to a repository.File:
src/server/api/routers/listings/comments.tsline 27Action required:
CommentsRepository(or extendListingsRepository) to encapsulate comment creation logic.Requested by @Producdevity — related to PR #375