general: remove console logs, linting
This commit is contained in:
@@ -1148,7 +1148,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
node.attrs.sender_pn
|
||||
) {
|
||||
const lid = jidNormalizedUser(node.attrs.from),
|
||||
pn = jidNormalizedUser(node.attrs.sender_pn)
|
||||
pn = jidNormalizedUser(node.attrs.sender_pn)
|
||||
ev.emit('lid-mapping.update', { lid, pn })
|
||||
await signalRepository.storeLIDPNMapping(lid, pn)
|
||||
}
|
||||
|
||||
@@ -101,7 +101,6 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
|
||||
ws.connect()
|
||||
|
||||
|
||||
const sendPromise = promisify(ws.send)
|
||||
/** send a raw buffer */
|
||||
const sendRawMessage = async (data: Uint8Array | Buffer) => {
|
||||
@@ -192,7 +191,6 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
.catch(reject)
|
||||
})
|
||||
|
||||
|
||||
if (result && 'tag' in result) {
|
||||
assertNodeErrorFree(result)
|
||||
}
|
||||
@@ -412,7 +410,6 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
|
||||
// Upload to server (outside transaction, can fail without affecting local keys)
|
||||
try {
|
||||
console.log("LOG", node)
|
||||
await query(node)
|
||||
logger.info({ count }, 'uploaded pre-keys successfully')
|
||||
lastUploadTime = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user