diff options
| author | Adam Soltys <[email protected]> | 2022-11-11 19:59:19 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-11 19:59:19 -0800 |
| commit | 258e85fcfd05128800fb296114668de5b9af73f4 (patch) | |
| tree | aaf84e12ea8f0e5b60815c80f7fb3125a6f4d27d | |
| parent | 3a217080186ecad1878ea3a1af24d17b0beff84c (diff) | |
| download | coinos-server-258e85fcfd05128800fb296114668de5b9af73f4.tar.gz coinos-server-258e85fcfd05128800fb296114668de5b9af73f4.zip | |
check payment invoice_id
| -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 })); } } |
