Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

History gets saved even when mongoose validation fails, or the same data is entered #56

Open
Ncifra opened this issue Sep 26, 2019 · 0 comments

Comments

@Ncifra
Copy link

Ncifra commented Sep 26, 2019

It seems that even when doing a "same" save, so the same data reentered for save, and even when the mongoose validation fails, a new entry is created about the history of a model.

I think the first problem can be avoided since mongoose has the isModified() function, while the other should just not be at all.

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

1 participant