Commit 21d5dc63 authored by Curtis Adam's avatar Curtis Adam

Use the moment.js endOf method to get a more accurate result for the registration period

parent bc9b5646
......@@ -21,7 +21,7 @@ export let Bonus = class Bonus {
return false;
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'editor', 'lecturer', 'university', 'pro'])) {
return !this.isInBonus(cardset._id) && moment(cardset.registrationPeriod).add(1, 'days') > new Date();
return !this.isInBonus(cardset._id) && moment(cardset.registrationPeriod).endOf('day') > new Date();
} else {
return false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment