general: remove console logs, linting

This commit is contained in:
Rajeh Taher
2025-09-08 23:11:32 +03:00
parent d0f8713247
commit a2e7e070fc
4 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -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)
}
-3
View File
@@ -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()