From 9e4197396f704067acba1601d7948f1ca50f7645 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 10:55:50 +0100 Subject: [PATCH] Update code in endpoints/logout.post.py --- endpoints/logout.post.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/endpoints/logout.post.py b/endpoints/logout.post.py index da6a26a..91b2c5b 100644 --- a/endpoints/logout.post.py +++ b/endpoints/logout.post.py @@ -11,8 +11,7 @@ router = APIRouter() @router.post("/logout", status_code=200) async def logout( - db: Session = Depends(get_db), - current_user: User = Depends(get_current_user) + db: Session = Depends(get_db) ): - logout_user(db, current_user) + logout_user(db) return {"message": "Logged out successfully"} \ No newline at end of file