saintedlama / mongoose-version

Mongoose plugin to save document data versions. Documents are saved to a "versioned" document collection before saving original documents and kept for later use.
BSD 2-Clause "Simplified" License
144 stars 35 forks source link

Make the refId type configurable. Fixes #19. #23

Closed jeresig closed 7 years ago

jeresig commented 7 years ago

It was assumed that the refId would always be an ObjectId, however this isn't necessarily the case. This diff adds a new configuration option which allows the type of the refId to be changed to something else (e.g. String).

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 90.476% when pulling 5ff31736ebfe9c2cc744decc53eda8ec8a17eea0 on jeresig:custom-refid-type into ae39796ab24bc0e27a7104b32836b72743f3bdd4 on saintedlama:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.3%) to 90.625% when pulling 5275ea75ad9d7e62c980753b09780c6e88cb1365 on jeresig:custom-refid-type into ae39796ab24bc0e27a7104b32836b72743f3bdd4 on saintedlama:master.