mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
feat: update to new meeting date
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user