Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: remove bug.body field and just append comment on bug creation. #5

Open
anuraghazra opened this issue Mar 29, 2020 · 0 comments

Comments

@anuraghazra
Copy link
Owner

In the Bug Model Instead of using bug.body for description of the bug, we can just add a comment while creating the bug that way we don't have to worry about managing two different reactions schemas.

body: {
type: String,
required: true,
maxLength: 1000
},

duplicate code introduced by current approach can be fixed:

exports.addOrRemoveReaction = async (req, res) => {

exports.addOrRemoveReaction = async (req, res) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant