This PR adds a version of update document that supports editing a document with or without contributions, triggering a new version of the document, if there are contributions in the update of the document.
Also the model Document instead of having a number lastVersion we have the field currentVersion which is simplier to work with, using populate().
Also it adds the field version to a comment. A comment now belongs to a document and a documentVersion!
This PR adds a version of
update
document that supports editing a document with or without contributions, triggering a new version of the document, if there are contributions in theupdate
of the document.Also the model Document instead of having a number
lastVersion
we have the fieldcurrentVersion
which is simplier to work with, using populate().Also it adds the field
version
to a comment. A comment now belongs to a document and adocumentVersion
!Thanks @mendezdev
Cheers!