diff options
| author | Adam Soltys <[email protected]> | 2022-11-12 01:59:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-12 01:59:47 -0800 |
| commit | 346ed3e679ee39112a4041079ffdd68656c1514a (patch) | |
| tree | ffae8dfb83810345c710ab8855bd48ac0ed313f0 /lib | |
| parent | b3140892f51928f626b556fbb99a60e438c71e2b (diff) | |
| parent | a8daf636b6c595d01e6b1cddfe8227b2b7aaed13 (diff) | |
| download | coinos-server-346ed3e679ee39112a4041079ffdd68656c1514a.tar.gz coinos-server-346ed3e679ee39112a4041079ffdd68656c1514a.zip | |
Merge branch 'master' into prod
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sockets.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/sockets.js b/lib/sockets.js index 30eb86f0..7498db62 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -27,11 +27,7 @@ export const emit = (username, type, data) => { for (let i = subscriptions.length - 1; i >= 0; i--) { let s = subscriptions[i]; - if ( - s.invoice.amount === data.amount || - (data.address && s.invoice.address === data.address) || - (data.address && s.invoice.unconfidential === data.address) - ) { + if (s.invoice.id === data.invoice_id) { s.ws.send(JSON.stringify({ type, data })); } } |
