Skip to content

Commit

Permalink
fix: disabled message_log
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 26, 2023
1 parent d843bc0 commit 0977880
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,14 @@ class SocketServer extends EventEmitter {
data = authorized.authorized

if (data.log !== false && data.log !== 'false' && !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', {
method: 'create.object',
array: 'message_log',
object,
organization_id: data.organization_id
});
// let object = { url: socket.socketUrl, data }
// delete object.socket
// this.emit('create.object', {
// method: 'create.object',
// array: 'message_log',
// object,
// organization_id: data.organization_id
// });
}

let sockets = this.get(data);
Expand Down

0 comments on commit 0977880

Please sign in to comment.