mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: log when state sync fails
This commit is contained in:
@@ -412,6 +412,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
const update = getBinaryNodeChild(node, 'collection')
|
const update = getBinaryNodeChild(node, 'collection')
|
||||||
if(update) {
|
if(update) {
|
||||||
resyncState(update.attrs.name as WAPatchName, false)
|
resyncState(update.attrs.name as WAPatchName, false)
|
||||||
|
.catch(err => logger.error({ trace: err.stack, node }, `failed to sync state`))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user