Standardize bridge send/receive params
This commit is contained in:
parent
69abe9bee1
commit
c32c26088f
23 changed files with 7042 additions and 1276 deletions
|
|
@ -19,8 +19,11 @@ const receiveFacebookMessageTask = async ({
|
|||
.executeTakeFirstOrThrow();
|
||||
const backendId = row.id;
|
||||
const payload = {
|
||||
text: messaging.message.text,
|
||||
recipient: messaging.sender.id,
|
||||
to: pageId,
|
||||
from: messaging.sender.id,
|
||||
sent_at: new Date(messaging.timestamp).toISOString(),
|
||||
message: messaging.message.text,
|
||||
message_id: messaging.message.mid,
|
||||
};
|
||||
|
||||
await worker.addJob("common/notify-webhooks", { backendId, payload });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue