From d3a797e259e42fb2d306951a8d3ef0b8e62c65b2 Mon Sep 17 00:00:00 2001 From: Clairton Rodrigo Heinzen Date: Sun, 9 Apr 2023 07:37:26 -0300 Subject: [PATCH] fix log --- src/services/outgoing_cloud_api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/outgoing_cloud_api.ts b/src/services/outgoing_cloud_api.ts index 7e9ddc56..3b2bceb3 100644 --- a/src/services/outgoing_cloud_api.ts +++ b/src/services/outgoing_cloud_api.ts @@ -31,8 +31,8 @@ export class OutgoingCloudApi implements Outgoing { const config = await this.getConfig(phone) const store = await config.getStore(phone, config) if (messageType && !['update', 'receipt'].includes(messageType)) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - Reflect.set(message, 'groupMetadata', await config.getGroupMetadata(i, store!)) + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any + ;(message as any).groupMetadata = await config.getGroupMetadata(i, store!) if (i.key && i.key.id) { await store?.dataStore.setKey(i.key.id, i.key) await store.dataStore.setMessage(i.key.remoteJid, i) @@ -74,7 +74,7 @@ export class OutgoingCloudApi implements Outgoing { [header]: token, } const uri = this.uri(url, phone) - console.debug(`Send url ${url} with headers %s and body %s`, headers, body) + console.debug(`Send url ${uri} with headers %s and body %s`, headers, body) const response: Response = await fetch(uri, { method: 'POST', body, headers }) console.debug('Response: ', response.status) if (!response.ok) {