mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
remove logs
This commit is contained in:
committed by
Sabe Jones
parent
db4bec37e3
commit
982069df36
@@ -660,7 +660,6 @@ export const GALA_SCHEDULE = {
|
||||
};
|
||||
|
||||
export function assembleScheduledMatchers (date) {
|
||||
console.log('Assembling new Schedule!');
|
||||
const items = [];
|
||||
const month = date instanceof moment ? date.month() : date.getMonth();
|
||||
const todayDay = date instanceof moment ? date.date() : date.getDate();
|
||||
@@ -696,11 +695,8 @@ export function getScheduleMatchingGroup (type, date) {
|
||||
items: [],
|
||||
match (key) {
|
||||
if (this.items.length > 0 && !inListMatcher(this.items)(key)) {
|
||||
console.log(this.items);
|
||||
console.log(key, 'not in list');
|
||||
return false;
|
||||
}
|
||||
console.log(this.matchers.every(m => m(key)));
|
||||
return this.matchers.every(m => m(key));
|
||||
},
|
||||
};
|
||||
|
||||
@@ -108,7 +108,6 @@ export default async function purchase (user, req = {}, analytics) {
|
||||
}
|
||||
} else if (item.event && item.event.gear) {
|
||||
const matchers = getScheduleMatchingGroup('seasonalGear');
|
||||
console.log(matchers);
|
||||
if (!matchers.match(item.set)) {
|
||||
throw new NotAuthorized(i18n.t('messageNotAvailable', req.language));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user