From 199ebeb4ea644c1e5e72383e5c627b4dcc3268ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Thu, 30 Nov 2023 09:54:47 +0100 Subject: [PATCH] fix(syncing-server): increase chances for notifying of items change to 70% --- .../src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts b/packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts index 3c500ea58..bafec4481 100644 --- a/packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts +++ b/packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts @@ -159,7 +159,7 @@ export class SaveItems implements UseCaseInterface { const tenPercentSpreadArray = Array.from(Array(10).keys()) const diceRoll = this.deterministicSelector.select(dto.userUuid, tenPercentSpreadArray) - if (diceRoll > 2) { + if (diceRoll > 6) { this.logger.debug(`[${dto.userUuid}] Not sending items changed event to client.`) return