From eba6aac189e3524891509ece001bb945c44bb06c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Apr 2023 07:06:06 +0000 Subject: fix lnurl processing --- routes/lnurl.js | 2 +- watcher.sh | 2 +- 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 -- cgit v1.2.3