fix issues in core
This commit is contained in:
@@ -82,4 +82,6 @@ export class RecurrenceStrategy implements IValueObject<RecurrenceStrategyProps>
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { RecurrenceStrategyFactory } from './RecurrenceStrategyFactory';
|
||||
@@ -0,0 +1,17 @@
|
||||
import { WeekdaySet } from './WeekdaySet';
|
||||
import { MonthlyRecurrencePattern } from './MonthlyRecurrencePattern';
|
||||
import { RecurrenceStrategy } from './RecurrenceStrategy';
|
||||
|
||||
export class RecurrenceStrategyFactory {
|
||||
static weekly(weekdays: WeekdaySet): RecurrenceStrategy {
|
||||
return RecurrenceStrategy.weekly(weekdays);
|
||||
}
|
||||
|
||||
static everyNWeeks(intervalWeeks: number, weekdays: WeekdaySet): RecurrenceStrategy {
|
||||
return RecurrenceStrategy.everyNWeeks(intervalWeeks, weekdays);
|
||||
}
|
||||
|
||||
static monthlyNthWeekday(pattern: MonthlyRecurrencePattern): RecurrenceStrategy {
|
||||
return RecurrenceStrategy.monthlyNthWeekday(pattern);
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ export class SeasonSchedule implements IValueObject<SeasonScheduleProps> {
|
||||
a.startDate.getTime() === b.startDate.getTime() &&
|
||||
a.timeOfDay.equals(b.timeOfDay) &&
|
||||
a.timezone.equals(b.timezone) &&
|
||||
a.recurrence.kind === b.recurrence.kind &&
|
||||
a.recurrence.props.kind === b.recurrence.props.kind &&
|
||||
a.plannedRounds === b.plannedRounds
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user