Skip to content

refactor: move comments router create logic to a repository #391

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions