Skip to content

project-happy-thoughts-api - zoe#516

Open
zoe-lindqvist wants to merge 8 commits intoTechnigo:masterfrom
zoe-lindqvist:master
Open

project-happy-thoughts-api - zoe#516
zoe-lindqvist wants to merge 8 commits intoTechnigo:masterfrom
zoe-lindqvist:master

Conversation

@zoe-lindqvist
Copy link

@JennieDalgren JennieDalgren self-assigned this Jan 9, 2025
Copy link

@JennieDalgren JennieDalgren left a comment

Choose a reason for hiding this comment

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

Great job with the project! All requirements met

Comment on lines +66 to +70
const updatedThought = await Thought.findByIdAndUpdate(
thoughtId,
{ $inc: { hearts: 1 } }, // Increments hearts with 1
{ new: true } // Return the updated thought
);

Choose a reason for hiding this comment

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

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