DemocracyOS / core

1 stars 1 forks source link

Update a Document (With and without contributions) and Comments now belongs to a document & a documentVersion #62

Closed guillecro closed 6 years ago

guillecro commented 6 years ago

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!

Thanks @mendezdev

Cheers!