We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7542ee7 commit 3f26c76Copy full SHA for 3f26c76
src/index.js
@@ -494,6 +494,11 @@ class SocketServer extends EventEmitter {
494
Data = { ...data }
495
}
496
497
+ // TODO: the following code can cause issues in client and improved approach is to check if user has permission and send or dont send
498
+ // if (Data.$filter && Data.$filter.query && Data.$filter.query._id && Data.$filter.query._id.$eq === '$user_id')
499
+ // delete Data.$filter.query._id
500
+
501
502
delete Data.socket
503
sockets[i].send(JSON.stringify(Data));
504
0 commit comments