tods-competition-factory 1.8.32 → 1.8.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4744,7 +4744,7 @@ function getAllStructureMatchUps({
4744
4744
  const matchUpCategory = collectionDefinition?.category ? {
4745
4745
  ...context?.category || {},
4746
4746
  ...collectionDefinition.category
4747
- } : context?.category;
4747
+ } : context?.category ?? event2?.category;
4748
4748
  const processCodes = matchUp.processCodes?.length && matchUp.processCodes || collectionDefinition?.processCodes?.length && collectionDefinition?.processCodes || structure?.processCodes?.length && structure?.processCodes || drawDefinition?.processCodes?.length && drawDefinition?.processCodes || event2?.processCodes?.length && event2?.processCodes || tournamentRecord?.processCodes;
4749
4749
  const competitiveProfile = contextProfile?.withCompetitiveness && getMatchUpCompetitiveProfile({ ...contextContent, matchUp });
4750
4750
  const finishingPositionRange = matchUp.finishingPositionRange ?? additionalContext.finishingPositionRange;
@@ -4754,9 +4754,9 @@ function getAllStructureMatchUps({
4754
4754
  ...onlyDefined({
4755
4755
  matchUpFormat: matchUp.matchUpType === TEAM$1 ? void 0 : matchUpFormat,
4756
4756
  tieFormat: matchUp.matchUpType !== TEAM$1 ? void 0 : tieFormat,
4757
+ gender: collectionDefinition?.gender ?? event2?.gender,
4757
4758
  roundOfPlay: stage !== QUALIFYING && isConvertableInteger(initialRoundOfPlay2) && initialRoundOfPlay2 + (roundNumber || 0),
4758
4759
  endDate: matchUp.endDate ?? endDate,
4759
- gender: collectionDefinition?.gender,
4760
4760
  discipline: event2?.discipline,
4761
4761
  category: matchUpCategory,
4762
4762
  finishingPositionRange,
@@ -19216,7 +19216,7 @@ function getParticipantEntries(params) {
19216
19216
  const minutesDifference = Math.abs(
19217
19217
  consideredMinutes - scheduledMinutes
19218
19218
  );
19219
- const itemIsPrior = consideredMinutes > scheduledMinutes;
19219
+ const itemIsPrior = consideredMinutes >= scheduledMinutes;
19220
19220
  const timeOverlap = scheduledMinutesDifference && !isNaN(scheduledMinutesDifference) ? minutesDifference <= scheduledMinutesDifference : itemIsPrior && timeStringMinutes(consideredItem.scheduledTime) < timeStringMinutes(notBeforeTime);
19221
19221
  if (timeOverlap && !(bothPotential && sameDraw) && itemIsPrior) {
19222
19222
  participantAggregator.scheduleConflicts.push({