tods-competition-factory 2.1.24 → 2.1.25
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.
- package/dist/index.mjs +2 -2
- package/dist/tods-competition-factory.development.cjs.js +13 -5
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.1.
|
|
6
|
+
return '2.1.25';
|
|
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
|
|
13491
|
+
const drawDetailPublishedIds = drawDetails &&
|
|
13492
13492
|
Object.keys(drawDetails).length &&
|
|
13493
|
-
Object.keys(drawDetails).filter((drawId) => getDrawPublishStatus({ drawDetails, drawId }))
|
|
13494
|
-
|
|
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
|
}
|