فهرست منبع

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

Karol Sójko 1 سال پیش
والد
کامیت
097e320490
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts

+ 1 - 1
packages/syncing-server/src/Domain/UseCase/Syncing/SaveItems/SaveItems.ts

@@ -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