From 055dbe1c62c5eecd704508a5a61855c3ce8b0f21 Mon Sep 17 00:00:00 2001 From: Alexis Feron Date: Wed, 29 Jan 2025 17:04:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20pin=20user=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 78aa79d..15fe70d 100644 --- a/app/main.py +++ b/app/main.py @@ -191,6 +191,7 @@ async def update_pin(id: str, pin: PinDTO, current_user: User = Depends(get_curr responses={401: {"model": HTTPError}} ) async def add_pin(pin: PinDTO, current_user: User = Depends(get_current_user)): + pin.user_id = current_user.uid pin_id = pins_collection.insert_one(pin.model_dump()).inserted_id return {"id": str(pin_id)}