@fitzzero/quickdraw-core 3.4.0 → 3.6.0

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.
@@ -289,6 +289,13 @@ var BaseService = class {
289
289
  for (const entity of entities) {
290
290
  entityMap.set(entity.id, entity);
291
291
  }
292
+ for (const entryId of allowedIds) {
293
+ if (!this.subscribers.has(entryId)) {
294
+ this.subscribers.set(entryId, /* @__PURE__ */ new Set());
295
+ }
296
+ this.subscribers.get(entryId).add(socket);
297
+ void socket.join(this.getRoomName(entryId));
298
+ }
292
299
  const results = {};
293
300
  for (const entryId of entryIds) {
294
301
  const entity = entityMap.get(entryId);
@@ -296,12 +303,6 @@ var BaseService = class {
296
303
  results[entryId] = null;
297
304
  continue;
298
305
  }
299
- if (!this.subscribers.has(entryId)) {
300
- this.subscribers.set(entryId, /* @__PURE__ */ new Set());
301
- }
302
- this.subscribers.get(entryId).add(socket);
303
- const roomName = this.getRoomName(entryId);
304
- void socket.join(roomName);
305
306
  results[entryId] = this.filterEntityForSubscriber(
306
307
  entity,
307
308
  socket,