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

feat: adding notification for new votes #350

Merged
merged 7 commits into from
Jul 6, 2023

Conversation

brunocorrea23
Copy link
Contributor

new we only have notifications for new comments on a user's post
this PR adds notifications for new upvotes

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Can you please make sure you account for the behaviour pointed out in #351?

status = 201;
await createVote(vote);

if (item!.userId != user!.id) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (item!.userId != user!.id) {
if (item!.userId !== user!.id) {

Hm, I would've thought that checking for item === null || user === null above would've negated the need for the need for the non-null assertion operator !.

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks you.

@iuioiua iuioiua merged commit 264f828 into denoland:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants