alby-hub/nip47
Roland bdce8fe8d2
Some checks are pending
Multiplatform Docker build & push / build (push) Waiting to run
Code quality - linting and typechecking / linting (push) Waiting to run
Backend testing with Postgres / test-postgres (push) Waiting to run
fix: use scope constant in get_budget permission query (#2510)
* fix: use scope constant in get_budget permission query

The get_budget controller filtered the app_permissions scope column with
models.PAY_INVOICE_METHOD, which only matched because the method and
scope constants share the same string value. Use
constants.PAY_INVOICE_SCOPE like every other scope lookup, and document
why the unchecked First result is safe.

Fixes #2503

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: return error from get_budget on unexpected permission query failure

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 12:39:07 +07:00
..
cipher fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
controllers fix: use scope constant in get_budget permission query (#2510) 2026-08-07 12:39:07 +07:00
models feat: add expired state to nip47 transactions (#1441) 2025-06-24 21:22:49 +05:30
notifications fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
permissions fix: check lnclient is nil in GetPermittedMethods (#2343) 2026-05-14 17:07:37 +05:30
event_handler.go fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
event_handler_shared_wallet_pubkey_test.go chore: switch to encryption tag from versioning (#1093) 2025-03-03 12:50:17 +07:00
event_handler_test.go fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
nip47_service.go fix: stop retrying NIP47 info publish for deleted apps (#2391) 2026-06-04 13:29:05 +07:00
publish_nip47_info.go fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
publish_nip47_info_test.go fix: stop retrying NIP47 info publish for deleted apps (#2391) 2026-06-04 13:29:05 +07:00