aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)