vikunja-api/models/team_members_create.go
2018-07-14 18:29:24 +02:00

8 lines
196 B
Go

package models
// Create implements the create method to assign a user to a team
func (tm *TeamMember) Create(doer *User, id int64) (err error) {
tm.TeamID = id
_, err = x.Insert(tm)
return
}