mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init org settings
This commit is contained in:
parent
838a94eec1
commit
55c097a50e
6 changed files with 227 additions and 16 deletions
|
|
@ -142,7 +142,7 @@ async def update_org(
|
|||
|
||||
slug_available = result.first()
|
||||
|
||||
if slug_available:
|
||||
if slug_available and slug_available.id != org_id:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_409_CONFLICT,
|
||||
detail="Organization slug already exists",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue