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

This commit is contained in:
Karol Sójko 2023-11-29 07:54:43 +01:00
parent c9bfda91f4
commit 097e320490
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 !== 1) {
if (diceRoll > 2) {
this.logger.debug(`[${dto.userUuid}] Not sending items changed event to client.`)
return