delete method에서 HTTPS 409 제거
parent
eb252307e8
commit
347e567b95
|
|
@ -127,9 +127,6 @@ async def delete_user_from_id(user_id:int):
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
await cur.execute(query, data)
|
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()
|
await cnx.commit()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -230,9 +227,6 @@ async def delete_blog_from_id(blog_id:int):
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
await cur.execute(query, data)
|
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()
|
await cnx.commit()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue