miqro 6.2.4 → 6.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,7 +30,7 @@ export class LocalCache {
30
30
  if (!(list instanceof Set)) {
31
31
  throw new Error("cannot apply on non Set");
32
32
  }
33
- if (list.has(value)) {
33
+ if (!list.has(value)) {
34
34
  list.add(value);
35
35
  }
36
36
  this.localCache.set(key, list);
@@ -33,7 +33,7 @@ export class ClusterCache {
33
33
  if (!(list instanceof Set)) {
34
34
  throw new Error("cannot apply push on non array");
35
35
  }
36
- if (list.has(msg.value)) {
36
+ if (!list.has(msg.value)) {
37
37
  list.add(msg.value);
38
38
  }
39
39
  this.localCache.set(msg.key, list);
@@ -124,7 +124,7 @@ export class ClusterCache {
124
124
  if (!(list instanceof Set)) {
125
125
  throw new Error("cannot apply on non Set");
126
126
  }
127
- if (list.has(value)) {
127
+ if (!list.has(value)) {
128
128
  list.add(value);
129
129
  }
130
130
  this.localCache.set(key, list);