Skip to content

Commit

Permalink
fix: added more methods to the message_log if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 20, 2023
1 parent b9b2690 commit 37f1106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class SocketServer extends EventEmitter {
if (authorized && authorized.authorized)
data = authorized.authorized

if (!data.method.startsWith('read.') || data.log || data.method !== 'updateUserStatus' || data.method !== 'userStatus') {
if (!data.method.startsWith('read.') && data.method !== 'updateUserStatus' && data.method !== 'userStatus' && data.method !== 'signIn' && data.method !== 'signUp') {
let object = { url: socket.socketUrl, data }
delete object.socket
this.emit('create.object', {
Expand Down

0 comments on commit 37f1106

Please sign in to comment.