2018-07-14 18:29:24 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
// Create implements the create method to assign a user to a team
|
2018-07-18 08:56:19 +02:00
|
|
|
func (tm *TeamMember) Create(doer *User) (err error) {
|
2018-07-24 17:46:32 +02:00
|
|
|
// TODO: Check if it exists etc
|
2018-07-14 18:29:24 +02:00
|
|
|
_, err = x.Insert(tm)
|
|
|
|
return
|
|
|
|
}
|