delete method에서 HTTPS 409 제거
This commit is contained in:
parent
eb252307e8
commit
347e567b95
@ -127,9 +127,6 @@ async def delete_user_from_id(user_id:int):
|
||||
}
|
||||
try:
|
||||
await cur.execute(query, data)
|
||||
except IntegrityError as e:
|
||||
await cnx.rollback()
|
||||
raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail="user already exist")
|
||||
await cnx.commit()
|
||||
return
|
||||
|
||||
@ -230,9 +227,6 @@ async def delete_blog_from_id(blog_id:int):
|
||||
}
|
||||
try:
|
||||
await cur.execute(query, data)
|
||||
except IntegrityError as e:
|
||||
await cnx.rollback()
|
||||
raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail="already exist")
|
||||
await cnx.commit()
|
||||
return
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user