diff options
Diffstat (limited to 'models/organization/org.go')
-rw-r--r-- | models/organization/org.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/organization/org.go b/models/organization/org.go index fbbf6d04fa..58b58e6732 100644 --- a/models/organization/org.go +++ b/models/organization/org.go @@ -370,8 +370,9 @@ func DeleteOrganization(ctx context.Context, org *Organization) error { &OrgUser{OrgID: org.ID}, &TeamUser{OrgID: org.ID}, &TeamUnit{OrgID: org.ID}, + &TeamInvite{OrgID: org.ID}, ); err != nil { - return fmt.Errorf("deleteBeans: %v", err) + return fmt.Errorf("DeleteBeans: %v", err) } if _, err := db.GetEngine(ctx).ID(org.ID).Delete(new(user_model.User)); err != nil { |