Skip to content

Commit 2c59e3e

Browse files
committed
Fix neocol webhook regex.test and baileys Long
1 parent 7257517 commit 2c59e3e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ export class BaileysStartupService extends ChannelStartupService {
11511151
where: { id: (oldMessage as any).id },
11521152
data: {
11531153
message: editedMessage.editedMessage as any,
1154-
messageTimestamp: (editedMessage.timestampMs as Long.Long).toNumber(),
1154+
messageTimestamp: (editedMessage.timestampMs as Long).toNumber(),
11551155
status: 'EDITED',
11561156
},
11571157
});

src/api/integrations/event/webhook/webhook.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class WebhookController extends EventController implements EventControlle
156156
}
157157

158158
try {
159-
if (isURL(globalURL)) {
159+
if (regex.test(globalURL)) {
160160
const httpService = axios.create({
161161
baseURL: globalURL,
162162
timeout: webhookConfig.REQUEST?.TIMEOUT_MS ?? 30000,

0 commit comments

Comments
 (0)