fix(syncing-server): increase chances for notifying of items change to 70%

This commit is contained in:
Karol Sójko 2023-11-30 09:54:47 +01:00
parent c949670d4c
commit 199ebeb4ea
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -159,7 +159,7 @@ export class SaveItems implements UseCaseInterface<SaveItemsResult> {
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