Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Both updatedBy and CreatedBy are getting updated after update operation on model object #424

Open
manveetb opened this issue Jun 15, 2021 · 3 comments

Comments

@manveetb
Copy link

manveetb commented Jun 15, 2021

In Mongoose model I am using schemaOptions timestamps: true to enable the mongo to record the createdAt and updatedAt timestamps. I was under impression that createdAt will always remain same and will not change after update operations but it keeps on changing same as updatedAt even after update. Any suggestions on how to correct it?

@hasezoey
Copy link
Contributor

unsupported repo, package and version, please use the maintained repository:
https://github.com/typegoose/typegoose/

@manveetb
Copy link
Author

unsupported repo, package and version, please use the maintained repository:
https://github.com/typegoose/typegoose/

Not following your above comment, can you be bit explicit what is expected for above question. Thanks

@hasezoey
Copy link
Contributor

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

No branches or pull requests

2 participants