1
0

Refactor GetUser & GetUserByID

This commit is contained in:
konrad
2018-08-30 19:14:02 +02:00
committed by kolaente
parent aeb1521cc4
commit 478c98fb8d
26 changed files with 69 additions and 75 deletions

View File

@ -25,7 +25,7 @@ func (Team) TableName() string {
// AfterLoad gets the created by user object
func (t *Team) AfterLoad() {
// Get the owner
t.CreatedBy, _, _ = GetUserByID(t.CreatedByID)
t.CreatedBy, _ = GetUserByID(t.CreatedByID)
// Get all members
x.Select("*").