alby-hub/api
Adithya Vardhan 3aa167a7c4
fix: add err handling to db queries (#2064)
* fix: add err handling to db queries

* chore: add error handling to GetApp

* chore: wrap the original error

* fix: retrieve balance after err != nil check

* chore: minor code cleanup

* chore: add error handling to app permission listing in GetApp

* chore: convert GetBudgetUsageSat to GetBudgetUsage

* chore: add tests for GetBudgetUsage

* chore: separate budget window tests

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2026-02-27 16:31:25 +07:00
..
api.go fix: add err handling to db queries (#2064) 2026-02-27 16:31:25 +07:00
api_test.go feat: proposal: custom node commands (#1007) 2025-01-30 18:20:17 +07:00
apps_test.go Feat: NWA auth for self-hosted hubs (#1016) 2025-02-27 19:12:55 +07:00
backup.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00
esplora.go chore: use NewRequestWithContext instead of NewRequest (#1677) 2025-09-02 19:52:30 +07:00
lsp.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00
models.go fix: add err handling to db queries (#2064) 2026-02-27 16:31:25 +07:00
rebalance.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00
transactions.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00