From f699e250901c17fba340544eca57408259a733ce Mon Sep 17 00:00:00 2001 From: Mouriya Date: Mon, 19 Aug 2024 21:20:09 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E3=81=97=E3=81=84User=E3=82=92?= =?UTF-8?q?=E4=BD=9C=E6=88=90=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D=E3=80=81?= =?UTF-8?q?UserDomain=E3=82=92=E7=B6=AD=E6=8C=81=E3=81=99=E3=82=8B?= =?UTF-8?q?=E9=9A=9B=E3=81=AB=E3=80=81=E9=96=8B=E3=81=84=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=82=8BUserDomain=E3=81=8C=E5=AD=98=E5=9C=A8=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AF=E3=80=81=E4=BE=8B?= =?UTF-8?q?=E5=A4=96=E3=82=92=E3=82=B9=E3=83=AD=E3=83=BC=E3=81=99=E3=82=8B?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E3=81=AF=E3=81=82=E3=82=8A=E3=81=BE=E3=81=9B?= =?UTF-8?q?=E3=82=93=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/db/crud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):