From e6d302e71061c5c1f93b97a39d27a2385f42bdd5 Mon Sep 17 00:00:00 2001 From: utibe solomon Date: Thu, 15 Aug 2024 04:12:58 +0100 Subject: [PATCH] fix products endpoint --- api/v1/routes/organisation.py | 1 - api/v1/services/invite.py | 2 +- api/v1/services/product.py | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/v1/routes/organisation.py b/api/v1/routes/organisation.py index d291454fe..a41d159d8 100644 --- a/api/v1/routes/organisation.py +++ b/api/v1/routes/organisation.py @@ -3,7 +3,6 @@ from fastapi.encoders import jsonable_encoder from fastapi.responses import StreamingResponse from sqlalchemy.orm import Session -from api.v1.services import invite from api.utils.success_response import success_response from api.v1.models.user import User from api.v1.schemas.organisation import ( diff --git a/api/v1/services/invite.py b/api/v1/services/invite.py index 5ee27b507..45a818de9 100644 --- a/api/v1/services/invite.py +++ b/api/v1/services/invite.py @@ -1,7 +1,7 @@ import logging from datetime import datetime, timedelta from pytz import utc -from sqlalchemy.orm import Session,joinedload +from sqlalchemy.orm import Session from sqlalchemy import insert from fastapi import HTTPException, Request, Depends, status from collections import OrderedDict diff --git a/api/v1/services/product.py b/api/v1/services/product.py index 60c93a63b..61cce2f3a 100644 --- a/api/v1/services/product.py +++ b/api/v1/services/product.py @@ -255,7 +255,4 @@ def fetch_all(db: Session, **query_params: Optional[Any]): - - - product_service = ProductService()