Spaces:
Runtime error
Runtime error
| --- a/src/web/inbound/monitor.ts | |
| +++ b/src/web/inbound/monitor.ts | |
| export async function monitorWebInbox(options: { | |
| return; | |
| } | |
| for (const msg of upsert.messages ?? []) { | |
| - recordChannelActivity({ | |
| - channel: "whatsapp", | |
| - accountId: options.accountId, | |
| - direction: "inbound", | |
| - }); | |
| const id = msg.key?.id ?? undefined; | |
| const remoteJid = msg.key?.remoteJid; | |
| if (!remoteJid) { | |
| export async function monitorWebInbox(options: { | |
| mediaPath, | |
| mediaType, | |
| mediaFileName, | |
| }; | |
| + recordChannelActivity({ | |
| + channel: "whatsapp", | |
| + accountId: options.accountId, | |
| + direction: "inbound", | |
| + }); | |
| try { | |
| const task = Promise.resolve(debouncer.enqueue(inboundMessage)); | |
| void task.catch((err) => { | |