Skip to content
Snippets Groups Projects
Commit 883d1f08 authored by albrecht's avatar albrecht
Browse files

warenkob wird nach bezahlung gelöscht

parent 09f03179
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,9 @@ func (s *ShoppingCartService) TransferMoney(username string) error {
return err
}
result = db.DB.Save(ShoppingCart)
result = db.DB.Delete(ShoppingCart)
if result.Error != nil {
log.Error("Could not save Shoppingcart")
log.Error("Could not delete Shoppingcart")
return result.Error
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment