-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
remove answer notification code #5496
remove answer notification code #5496
Conversation
Generated by 🚫 Danger |
afc3267
to
ddbea13
Compare
Looks good; we resolved an upstream test failure today so perhaps this just needs a rebase? Not sure, though! Thanks!!!! |
e1ab6bc
to
a246f7b
Compare
@publiclab/reviewers , @jywarren , @jainaman224 I think this is ready to merge. Kindly have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but is this supposed to be there? Just checking!
db/migrate/.20190401093400_update_node_view_count 2.rb.icloud
@@ -11,8 +11,7 @@ def likes | |||
AnswerSelection.set_likes(current_user.uid, @answer.id, false) | |||
else | |||
AnswerSelection.set_likes(current_user.uid, @answer.id, true) | |||
user = User.find(current_user.uid) | |||
AnswerMailer.notify_answer_like(user, @answer).deliver_later | |||
User.find(current_user.uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not required. We already have user as current_user
.
😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that line didn't make any sense. Thanks for pointing out!!
Woah, I think that was added by mistake. Removed it. |
b3bb9af
to
402552b
Compare
Looks good!!!! Thank you!!! |
* remove answer notification code * minor changes * fix answer tests * minor changes
Part of #4094