]> source.dussan.org Git - gitea.git/commit
[API] orgEditTeam make Fields optional (#9556)
author6543 <6543@obermui.de>
Thu, 9 Jan 2020 13:15:14 +0000 (14:15 +0100)
committerzeripath <art27@cantab.net>
Thu, 9 Jan 2020 13:15:14 +0000 (13:15 +0000)
commit1080c768d33a2c4846467d2e2913df87237b8b23
tree0c9fd7f0da7e53bb6eeffa65aec793823bd8eb89
parent71fe01897743915b8fc8bb8d07f44ee6214d1e50
[API] orgEditTeam make Fields optional (#9556)

* API: orgEditTeam make Fields optional

* add TestCase

* Update integrations/api_team_test.go

* suggestions from lafriks

use len() to check if string is empty

Co-Authored-By: Lauris BH <lauris@nix.lv>
* change ...

* use Where not ID to get mssql

* add return and code format

* fix test

* fix test ... null pointer exept

* update specific colums

* only specific colums too

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
integrations/api_team_test.go
models/org_team.go
modules/structs/org_team.go
routers/api/v1/org/team.go