add: team valid

This commit is contained in:
2021-05-06 18:22:30 +08:00
parent 411c10e8f3
commit fc5876fc32
5 changed files with 18 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ class Organizations::TeamsController < Organizations::BaseController
end
def update
Organizations::CreateTeamForm.new(team_params).validate!
@team = Organizations::Teams::UpdateService.call(current_user, @team, team_params)
rescue Exception => e
uid_logger_error(e.message)