Skip to content

Commit

Permalink
chore(merge): merge develop into main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 9, 2024
2 parents c0a9742 + 937aa1c commit b1e6b3f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
Binary file modified bun.lockb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class UpdateRankingService {
const distinctPlayers: Player[] = [];
const distinctIds: string[] = [];

const chunks = this.chunkArray(data);
const chunks = this.chunkArray(data, 50);

const include = (
updateClubs
Expand Down Expand Up @@ -172,8 +172,7 @@ export class UpdateRankingService {
}

private async createPlayers(newPlayers: MembersRolePerGroupData[], transaction?: Transaction) {
const chunkSize = 100;
const chunks = this.chunkArray(newPlayers, chunkSize);
const chunks = this.chunkArray(newPlayers, 50);

let playersProcessed = 0;
for (const chunk of chunks) {
Expand Down Expand Up @@ -292,7 +291,7 @@ export class UpdateRankingService {
updatePossible: boolean,
transaction?: Transaction,
) {
const distinctPlayersChunks = this.chunkArray(distinctPlayers, 100);
const distinctPlayersChunks = this.chunkArray(distinctPlayers, 50);

for (const chunk of distinctPlayersChunks) {
const places = await RankingPlace.findAll({
Expand Down Expand Up @@ -513,7 +512,7 @@ export class UpdateRankingService {
this._logger.verbose(`Stop ${toStop.length} memberships`);

if (toStop.length > 0) {
const chunks = this.chunkArray(toStop, 100);
const chunks = this.chunkArray(toStop, 50);
for (const chunk of chunks) {
await ClubPlayerMembership.update(
{
Expand Down Expand Up @@ -546,7 +545,7 @@ export class UpdateRankingService {
this._logger.verbose(`Create ${toCreate.length} memberships`);

if (toCreate.length > 0) {
const chunks = this.chunkArray(toCreate, 100);
const chunks = this.chunkArray(toCreate, 50);
for (const chunk of chunks) {
await ClubPlayerMembership.bulkCreate(chunk, { transaction });
}
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
"@ng-matero/extensions-moment-adapter": "^18.0.0",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0",
"@nx/angular": "20.0.7",
"@nx/nest": "20.0.7",
"@nx/angular": "20.1.3",
"@nx/nest": "20.1.3",
"@socket.io/redis-adapter": "^8.3.0",
"apexcharts": "^3.54.1",
"apollo-angular": "^7.2.1",
Expand Down Expand Up @@ -168,16 +168,16 @@
"@eslint/eslintrc": "^3.1.0",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.6",
"@nx/devkit": "20.0.7",
"@nx/eslint": "20.0.7",
"@nx/eslint-plugin": "20.0.7",
"@nx/jest": "20.0.7",
"@nx/js": "20.0.7",
"@nx/node": "20.0.7",
"@nx/playwright": "20.0.7",
"@nx/web": "20.0.7",
"@nx/webpack": "20.0.7",
"@nx/workspace": "20.0.7",
"@nx/devkit": "20.1.3",
"@nx/eslint": "20.1.3",
"@nx/eslint-plugin": "20.1.3",
"@nx/jest": "20.1.3",
"@nx/js": "20.1.3",
"@nx/node": "20.1.3",
"@nx/playwright": "20.1.3",
"@nx/web": "20.1.3",
"@nx/webpack": "20.1.3",
"@nx/workspace": "20.1.3",
"@playwright/test": "^1.48.2",
"@prettier/plugin-pug": "^3.2.0",
"@schematics/angular": "18.2.7",
Expand Down Expand Up @@ -214,7 +214,7 @@
"jest-preset-angular": "14.1.1",
"jsonc-eslint-parser": "^2.4.0",
"ng-packagr": "18.2.1",
"nx": "20.0.7",
"nx": "20.1.3",
"prettier": "3.3.2",
"redis-memory-server": "^0.11.0",
"supertest": "^7.0.0",
Expand Down

0 comments on commit b1e6b3f

Please sign in to comment.