diff --git a/backend/app/db/crud.py b/backend/app/db/crud.py index 2101ad9..70ef451 100644 --- a/backend/app/db/crud.py +++ b/backend/app/db/crud.py @@ -253,8 +253,8 @@ def active_userdomain(db: Session, userid: int,domainid: int): def get_activedomain(db: Session, userid: int): db_domain = db.query(models.Domain).join(models.UserDomain,models.UserDomain.domainid == models.Domain.id ).filter(and_(models.UserDomain.userid == userid,models.UserDomain.active == True)).first() - if not db_domain: - raise HTTPException(status.HTTP_404_NOT_FOUND, detail="Domain not found") + # if not db_domain: + # raise HTTPException(status.HTTP_404_NOT_FOUND, detail="Domain not found") return db_domain def get_domain(db: Session, userid: str):