Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
fix: bugs update tenant in admin api (arana-db#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffcaii authored Jan 2, 2023
1 parent b37c75f commit c1b3349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/admin/router/tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func UpdateTenant(c *gin.Context) error {
tenant := c.Param("tenant")

var upsert admin.TenantDTO
if err := c.ShouldBindJSON(&upsert); err == nil {
if err := c.ShouldBindJSON(&upsert); err != nil {
return exception.Wrap(exception.CodeInvalidParams, err)
}

Expand Down

0 comments on commit c1b3349

Please sign in to comment.