Skip to content

Commit f8e3b76

Browse files
Update webhook.model.ts
Foi criado novas propriedades para recuperar Base64 da media enviada por webhook.
1 parent b8f1e8a commit f8e3b76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/whatsapp/models/webhook.model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export class WebhookRaw {
88
enabled?: boolean;
99
events?: string[];
1010
webhook_by_events?: boolean;
11+
webhook_base64?: boolean;
1112
}
1213

1314
const webhookSchema = new Schema<WebhookRaw>({
@@ -16,6 +17,7 @@ const webhookSchema = new Schema<WebhookRaw>({
1617
enabled: { type: Boolean, required: true },
1718
events: { type: [String], required: true },
1819
webhook_by_events: { type: Boolean, required: true },
20+
webhook_base64: { type: Boolean, required: true },
1921
});
2022

2123
export const WebhookModel = dbserver?.model(WebhookRaw.name, webhookSchema, 'webhook');

0 commit comments

Comments
 (0)