aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-04 07:06:06 +0000
committerAdam Soltys <[email protected]>2023-04-04 07:06:19 +0000
commiteba6aac189e3524891509ece001bb945c44bb06c (patch)
treec72faae5c25fbd97f69f9b0fb9ac9c20f821f460
parent8b67a32b6ffc87b14ef1fa26b6596695419b8e3e (diff)
downloadcoinos-server-eba6aac189e3524891509ece001bb945c44bb06c.tar.gz
coinos-server-eba6aac189e3524891509ece001bb945c44bb06c.zip
fix lnurl processing
-rw-r--r--routes/lnurl.js2
-rwxr-xr-xwatcher.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 4540a11a..e31d24e2 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -42,7 +42,7 @@ export default {
},
async lnurlp({ params: { username } }, res) {
- let uid = await getUser(username);
+ let { id: uid } = await getUser(username);
if (!uid) {
let u = await got(`${classic}/admin/migrate/${username}?zero=true`, {
headers: { authorization: `Bearer ${admin}` },
diff --git a/watcher.sh b/watcher.sh
index b12ee1cb..4f5cbd39 100755
--- a/watcher.sh
+++ b/watcher.sh
@@ -16,7 +16,7 @@ do
if "$low"; then
echo "Threshold hit, setting new threshold"
- docker stop app;
+# docker stop app;
curl localhost:3119/email -H "content-type: application/json" -d '{"token": "MPJzfq97ab!!!!", "message": "threshold hit"}'
fi
sleep 120