Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Dec 23, 2023
1 parent e6cb089 commit f67391d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ class Zigbee extends utils.Adapter {
});

const payload = await new Promise((resolve, reject) => {
const payload = converter.convert(mappedModel, message, publish, options, meta);
if (typeof payload === 'object') {
resolve(payload);
const payloadConv = converter.convert(mappedModel, message, publish, options, meta);
if (typeof payloadConv === 'object') {
resolve(payloadConv);
}
});

Expand Down

0 comments on commit f67391d

Please sign in to comment.