diff --git a/be/app/api/v1/endpoints/lists.py b/be/app/api/v1/endpoints/lists.py index b864f3d..62e4064 100644 --- a/be/app/api/v1/endpoints/lists.py +++ b/be/app/api/v1/endpoints/lists.py @@ -61,6 +61,7 @@ async def create_list( try: created_list = await crud_list.create_list(db=db, list_in=list_in, creator_id=current_user.id) + await db.commit() # Ensure the transaction is committed logger.info(f"List '{created_list.name}' (ID: {created_list.id}) created successfully for user {current_user.email}.") return created_list except DatabaseIntegrityError as e: