feat(projects): cleanup namespace leftovers
This commit is contained in:
@ -241,7 +241,7 @@ func (t *Team) ReadAll(s *xorm.Session, a web.Auth, search string, page int, per
|
||||
|
||||
// Create is the handler to create a team
|
||||
// @Summary Creates a new team
|
||||
// @Description Creates a new team in a given namespace. The user needs write-access to the namespace.
|
||||
// @Description Creates a new team.
|
||||
// @tags team
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
@ -307,12 +307,6 @@ func (t *Team) Delete(s *xorm.Session, a web.Auth) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// Delete team <-> namespace relations
|
||||
_, err = s.Where("team_id = ?", t.ID).Delete(&TeamNamespace{})
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
// Delete team <-> projects relations
|
||||
_, err = s.Where("team_id = ?", t.ID).Delete(&TeamProject{})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user