AgileVentures / asyncvoter-api

For Voting on Stories and Tickets remotely and asynchronously e.g. planning poker
5 stars 7 forks source link

add timestamps to vote model #89

Closed vardyb closed 6 years ago

vardyb commented 6 years ago

Added timestamp fields to vote model so we can track multiple votes from same user if they change their mind.

Implemented for #88

tansaku commented 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?

tansaku commented 6 years ago

and do any tests need adjusting?

vardyb commented 6 years ago

@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?

tansaku commented 6 years ago

@vardyb oh that sounds great :-) no, no extra tests needed here if the existing ones are passing ...