AhmadYarAI commited on
Commit
5901fe2
·
1 Parent(s): 5e6e3b3

Done the configuration

Browse files
Files changed (1) hide show
  1. api/invoices.py +1 -1
api/invoices.py CHANGED
@@ -45,7 +45,7 @@ def create_invoice(data: InvoiceCreate, db: Session = Depends(get_db)):
45
  )
46
 
47
  db.add(new_invoice)
48
- db.commit() # Click! The dispenser gives you ID 47.
49
  db.refresh(new_invoice)
50
 
51
  # 3. Update the string now that we officially have the ID
 
45
  )
46
 
47
  db.add(new_invoice)
48
+ db.commit()
49
  db.refresh(new_invoice)
50
 
51
  # 3. Update the string now that we officially have the ID