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)}