Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Apr 9, 2023
1 parent c7dfb33 commit d3a797e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/outgoing_cloud_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d3a797e

Please sign in to comment.