fic: Add team's external_id to allow team and score synchronisation
This commit is contained in:
parent
342d216b3e
commit
5c12963da8
5 changed files with 30 additions and 26 deletions
|
@ -155,7 +155,7 @@ func createTeam(_ httprouter.Params, body []byte) (interface{}, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return fic.CreateTeam(strings.TrimSpace(ut.Name), ut.Color)
|
||||
return fic.CreateTeam(strings.TrimSpace(ut.Name), ut.Color, ut.ExternalId)
|
||||
}
|
||||
|
||||
func updateTeam(team fic.Team, body []byte) (interface{}, error) {
|
||||
|
|
Reference in a new issue