Skip to content

Commit

Permalink
fix: fix err panic when login
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 committed Jul 15, 2022
1 parent bf3266e commit f65160b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func (this *DatabaseController) Connect() {
json.Unmarshal(this.Ctx.Input.RequestBody, &params)

info, err := dao.Connect(params.Address, params.Port, params.Username, params.Password)
nsid := info.ClientID
if err == nil {
nsid := info.ClientID
res.Code = 0
m := make(map[string]types.Any)
m["nsid"] = nsid
Expand Down

0 comments on commit f65160b

Please sign in to comment.