We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ae0b3 commit 09abdb8Copy full SHA for 09abdb8
routers/api/v1/api.go
@@ -397,7 +397,7 @@ func orgAssignment(args ...bool) macaron.Handler {
397
if assignTeam {
398
ctx.Org.Team, err = models.GetTeamByID(ctx.ParamsInt64(":teamid"))
399
if err != nil {
400
- if models.IsErrUserNotExist(err) {
+ if models.IsErrTeamNotExist(err) {
401
ctx.NotFound()
402
} else {
403
ctx.Error(http.StatusInternalServerError, "GetTeamById", err)
0 commit comments