Skip to content

Commit

Permalink
Update channel.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
e-enes authored Jun 7, 2023
1 parent 721b099 commit 57f68e8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/sync/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ export default {
if (error) reject(error.message);
if (results && results[0]) {
resolve({
welcome: results[0].welcome,
leave: results[0].leave,
log: results[0].log
welcome: results[0].welcome ?? undefined,
leave: results[0].leave ?? undefined,
log: results[0].log ?? undefined
});
} else {
resolve({
welcome: undefined,
leave: undefined,
log: undefined
});
}
});
Expand Down

0 comments on commit 57f68e8

Please # to comment.