diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go index d6cbcc9658..9d7aaec7ef 100644 --- a/models/org.go +++ b/models/org.go @@ -135,7 +135,9 @@ func CreateOrganization(org, owner *User) (err error) { if _, err = sess.Insert(org); err != nil { return fmt.Errorf("insert organization: %v", err) } - org.GenerateRandomAvatar() + if err = org.generateRandomAvatar(sess); err != nil { + return fmt.Errorf("generate random avatar: %v", err) + } // Add initial creator to organization and owner team. if _, err = sess.Insert(&OrgUser{ |