Commit b89a835d authored by Sonja Happ's avatar Sonja Happ
Browse files

enable deletion of scenarios from DB

parent 5df16ec0
......@@ -137,14 +137,11 @@ func (s *Scenario) delete() error {
}
}
// Scenario is not deleted from DB, only associations with users are removed
// Scenario remains "dangling" in DB
// Delete scenario
//err = db.Delete(s).Error
//if err != nil {
// return err
//}
err = db.Delete(s).Error
if err != nil {
return err
}
return nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment