Implement GET teams/{team_id}/stats - apiv4 (#5453)

* api4 GET teams/{team_id}/stats

* api4 GET teams/{team_id}/stats

* moved TeamStats router to team.go
Этот коммит содержится в:
Saturnino Abril
2017-02-18 05:50:17 +09:00
коммит произвёл Joram Wilander
родитель 91fe8bb2c0
Коммит 00d11e961f
4 изменённых файлов: 101 добавлений и 1 удалений

Просмотреть файл

@@ -260,6 +260,20 @@ func (me *TestHelper) LoginSystemAdminWithClient(client *model.Client4) {
utils.EnableDebugLogForTest()
}
func (me *TestHelper) UpdateActiveUser(user *model.User, active bool) {
utils.DisableDebugLogForTest()
_, err := app.UpdateActive(user, active)
if err != nil {
l4g.Error(err.Error())
l4g.Close()
time.Sleep(time.Second)
panic(err)
}
utils.EnableDebugLogForTest()
}
func LinkUserToTeam(user *model.User, team *model.Team) {
utils.DisableDebugLogForTest()