GetUser now returns a pointer (#93)
This commit is contained in:
parent
8fbe721453
commit
be14634e1e
25 changed files with 172 additions and 131 deletions
|
|
@ -179,6 +179,11 @@ func getLabelsByTaskIDs(opts *LabelByTaskIDsOptions) (ls []*labelWithTaskID, err
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Obfuscate all user emails
|
||||
for _, u := range users {
|
||||
u.Email = ""
|
||||
}
|
||||
|
||||
// Put it all together
|
||||
for in, l := range labels {
|
||||
labels[in].CreatedBy = users[l.CreatedByID]
|
||||
|
|
|
|||
Reference in a new issue