diff options
| author | Adam Soltys <[email protected]> | 2022-09-17 03:14:48 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-17 03:14:57 -0400 |
| commit | c9a5be7bc9d2fa190903c91ad2f1f408580ce745 (patch) | |
| tree | 12bf76710106121a381f42b77872a68d8e179b5c | |
| parent | b3874470a2ec0e9a6828f88b72ac918ec7af8908 (diff) | |
| download | coinos-server-c9a5be7bc9d2fa190903c91ad2f1f408580ce745.tar.gz coinos-server-c9a5be7bc9d2fa190903c91ad2f1f408580ce745.zip | |
get sessions from store
| -rw-r--r-- | prod.yml | 4 | ||||
| -rw-r--r-- | routes/lnurl.js | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -22,3 +22,7 @@ services: restart: always environment: MARIADB_ROOT_PASSWORD: pw +networks: + default: + name: net + external: true diff --git a/routes/lnurl.js b/routes/lnurl.js index 4335d566..547a41dd 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -545,7 +545,7 @@ lnurlServer.bindToHook("login", async key => { if (user && user.username) { const payload = { username: user.username }; const token = jwt.sign(payload, config.jwt); - const ws = sessions[logins[key].k1]; + const ws = store.sessions[logins[key].k1]; if (ws && ws.send) ws.send(JSON.stringify({ type: "token", data: { token, key } })); } |
