aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-19 04:22:37 +0100
committerGravatar Joe Banks <[email protected]>2024-08-19 04:22:37 +0100
commitb1e53cf483670a43920c6e03c138c15b48ebbd0c (patch)
tree97c258f8a33dcbe21bca59e382e405e57fdfc6ed /thallium-backend
parentRelock dependencies (diff)
Rename current voucher route
Diffstat (limited to 'thallium-backend')
-rw-r--r--thallium-backend/src/routes/vouchers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-backend/src/routes/vouchers.py b/thallium-backend/src/routes/vouchers.py
index 26770e9..a0740a5 100644
--- a/thallium-backend/src/routes/vouchers.py
+++ b/thallium-backend/src/routes/vouchers.py
@@ -16,7 +16,7 @@ log = logging.getLogger(__name__)
@authenticated_router.get("/me")
-async def get_vouchers(request: Request, db: DBSession) -> Voucher | None:
+async def get_current_voucher(request: Request, db: DBSession) -> Voucher | None:
"""Get the voucher for the currently authenticated voucher id."""
stmt = select(DBVoucher).where(DBVoucher.id == request.state.voucher_id)
res = await db.execute(stmt)