fixed lint + fmt
This commit is contained in:
parent
bc0e6da602
commit
a5552b8f9d
4 changed files with 5 additions and 3 deletions
|
@ -22,6 +22,7 @@ func (Team) TableName() string {
|
|||
return "teams"
|
||||
}
|
||||
|
||||
// AfterLoad gets the created by user object
|
||||
func (t *Team) AfterLoad() {
|
||||
// Get the owner
|
||||
*t.CreatedBy, _, _ = GetUserByID(t.CreatedByID)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package models
|
||||
|
||||
// Create is the handler to create a team
|
||||
func (t *Team) Create(doer *User, _ int64) (err error) {
|
||||
// Check if we have a name
|
||||
if t.Name == "" {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// CreateWeb is the handler to create an object
|
||||
|
|
Loading…
Reference in a new issue