feature/catalog-importation
This commit is contained in:
@@ -78,7 +78,7 @@ async def delete_incoterm(
|
||||
db: Session = Depends(get_core_db),
|
||||
current_user: dict = Depends(has_role("admin")),
|
||||
):
|
||||
obj = db.query(Incoterm).filter(Incoterm.key == key).first()
|
||||
obj = db.query(Incoterm).filter(Incoterm.code == key).first()
|
||||
if not obj:
|
||||
raise HTTPException(status_code=404, detail="Not found")
|
||||
db.delete(obj)
|
||||
|
||||
Reference in New Issue
Block a user