1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

Go fmt and linting issues

This commit is contained in:
Harvey Kandola 2016-10-17 14:17:54 -07:00
parent cf9de30a23
commit 7cd1c2f80c
5 changed files with 22 additions and 2 deletions

View file

@ -18,6 +18,7 @@ import (
"github.com/documize/community/core/api/util"
)
// SetupPersister prepares context for database activity.
func SetupPersister() (*Persister, error) {
var err error
c := Context{
@ -40,6 +41,7 @@ func SetupPersister() (*Persister, error) {
return p, err
}
// SetupOrganization creates "tenant" record in database.
func (p *Persister) SetupOrganization(company, title, message, domain, email string) (entity.Organization, error) {
org := entity.Organization{
BaseEntity: entity.BaseEntity{RefID: p.Context.OrgID},