tods-competition-factory 2.1.24 → 2.1.26

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.1.24';
6
+ return '2.1.26';
7
7
  }
8
8
 
9
9
  const SINGLES_MATCHUP = 'SINGLES';
@@ -13488,16 +13488,24 @@ function getPubStatus({ event }) {
13488
13488
  };
13489
13489
  }
13490
13490
  }
13491
- const publishedDrawIds = (drawDetails &&
13491
+ const drawDetailPublishedIds = drawDetails &&
13492
13492
  Object.keys(drawDetails).length &&
13493
- Object.keys(drawDetails).filter((drawId) => getDrawPublishStatus({ drawDetails, drawId }))) ||
13494
- eventPubStatus.drawIds;
13493
+ Object.keys(drawDetails).filter((drawId) => getDrawPublishStatus({ drawDetails, drawId }));
13494
+ const publishedDrawIds = drawDetailPublishedIds?.length ? drawDetailPublishedIds : eventPubStatus.drawIds ?? [];
13495
+ if (publishedDrawIds?.length && !drawDetailPublishedIds?.length) {
13496
+ for (const drawId of publishedDrawIds) {
13497
+ drawDetails[drawId] = {
13498
+ publishingDetail: { published: true },
13499
+ };
13500
+ }
13501
+ }
13502
+ const published = publishedDrawIds?.length > 0;
13495
13503
  return {
13496
13504
  status: {
13497
- published: publishedDrawIds && publishedDrawIds.length > 0,
13498
13505
  publishedDrawIds,
13499
13506
  publishedSeeding,
13500
13507
  drawDetails,
13508
+ published,
13501
13509
  },
13502
13510
  };
13503
13511
  }
@@ -44049,8 +44057,11 @@ function noDownstreamDependencies(params) {
44049
44057
  return decorateResult({ result, stack });
44050
44058
  }
44051
44059
  function scoreModification(params) {
44052
- const stack = 'scoreModification';
44053
- const remove = params.isCollectionMatchUp && params.dualMatchUp?.winningSide && !params.projectedWinningSide;
44060
+ const stack = 'ndd:scoreModification';
44061
+ const remove = params.isCollectionMatchUp &&
44062
+ params.dualMatchUp?.winningSide &&
44063
+ !params.projectedWinningSide &&
44064
+ !params.autoCalcDisabled;
44054
44065
  if (remove) {
44055
44066
  const result = removeDirectedParticipants(params);
44056
44067
  if (result.error)