Closed vardyb closed 6 years ago
@vardyb thanks for this - do we also need to adjust where this gets passed in via the controller, or will it get filled in automatically by mongoose?
and do any tests need adjusting?
@tansaku yes the timestamp fields get automatically added by mongoose so no need to make any further changes to the controller. Because this is functionality of another module and not handled by our code I didn't feel any changes to the tests were necessary?
@vardyb oh that sounds great :-) no, no extra tests needed here if the existing ones are passing ...
Added timestamp fields to
vote
model so we can track multiple votes from same user if they change their mind.Implemented for #88