Skip to content

Fixed conflict for createdAt and __v when doing update or findOneAnd…#48

Open
abhijitborade wants to merge 2 commits into
drudge:masterfrom
abhijitborade:setOnInsertConflicts
Open

Fixed conflict for createdAt and __v when doing update or findOneAnd…#48
abhijitborade wants to merge 2 commits into
drudge:masterfrom
abhijitborade:setOnInsertConflicts

Conversation

@abhijitborade

@abhijitborade abhijitborade commented Oct 24, 2018

Copy link
Copy Markdown

This is patch for Issue #46.
MongoError: Updating the path 'createdAt' would create a conflict at 'createdAt'

@stefanwalther

Copy link
Copy Markdown

Any plans to merge this?

@abhijitborade abhijitborade left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@drudge Please review and merge this pull request.

@surfer77

Copy link
Copy Markdown

When can this be merged ? getting the same error.

@abhijitborade

abhijitborade commented Jul 2, 2019

Copy link
Copy Markdown
Author

I don't think @drudge is active. So I have published this fork separately as mongoose-timestamp2.

@developdeez

Copy link
Copy Markdown

@abhijitborade simply replacing mongoose-timestamp with mongoose-timestamp2, still had the error for me. Maybe I missed something?

@abhijitborade

Copy link
Copy Markdown
Author

@abhijitborade simply replacing mongoose-timestamp with mongoose-timestamp2, still had the error for me. Maybe I missed something?

@developdeez, can you share your query?

@developdeez

developdeez commented Feb 25, 2020

Copy link
Copy Markdown

@abhijitborade simply replacing mongoose-timestamp with mongoose-timestamp2, still had the error for me. Maybe I missed something?

@developdeez, can you share your query?

 await User.findByIdAndUpdate(id, {
                $set: myUser
              });

@abhijitborade

abhijitborade commented Feb 25, 2020

Copy link
Copy Markdown
Author

@developdeez I got it fixed. Check this issue in mongoose-timestamp2.

@developdeez

Copy link
Copy Markdown

@abhijitborade awesome. I'll check it out asap. thanks :)

@dmackinn

dmackinn commented Aug 4, 2021

Copy link
Copy Markdown

@drudge Any chance this could get merged into the main package? Are you still maintaining this? A good number of people are still downloading and using this package.

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.

6 participants