feat: update to new meeting date

This commit is contained in:
Karl-Philipp Wulfert
2019-11-13 15:02:12 +01:00
parent b1c019bece
commit 98c73b5758
4 changed files with 39 additions and 36 deletions

View File

@@ -13,6 +13,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Label} from '@openstapps/gitlab-api/lib/types';
import * as moment from 'moment';
/**
* List of schools with their IDs
@@ -196,3 +197,23 @@ export const CONCURRENCY = 3;
* Maximum depth for merge request reminders
*/
export const MAX_DEPTH_FOR_REMINDER = 2;
/**
* Next meeting
*/
export const NEXT_MEETING = moment()
.startOf('week')
// tslint:disable-next-line:no-magic-numbers
.hour(15)
// tslint:disable-next-line:no-magic-numbers
.day(2);
if (NEXT_MEETING.isBefore(moment())) {
NEXT_MEETING.add(1, 'week');
}
/**
* Last meeting
*/
export const LAST_MEETING = moment(NEXT_MEETING)
.subtract(1, 'week');