Skip to content

Commit

Permalink
edit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nnqq committed Apr 13, 2022
1 parent a70af03 commit 7f4d971
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions companyimpl/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,21 @@ func (*server) Edit(ctx context.Context, req *parser.EditRequest) (
}
if req.GetInn() != nil {
if req.GetInn().GetValue() != 0 {
set["i"] = req.GetInn().GetValue()
set["i"] = int(req.GetInn().GetValue())
} else {
unset["i"] = ""
}
}
if req.GetKpp() != nil {
if req.GetKpp().GetValue() != 0 {
set["k"] = req.GetKpp().GetValue()
set["k"] = int(req.GetKpp().GetValue())
} else {
unset["k"] = ""
}
}
if req.GetOgrn() != nil {
if req.GetOgrn().GetValue() != 0 {
set["og"] = req.GetOgrn().GetValue()
set["og"] = int(req.GetOgrn().GetValue())
} else {
unset["og"] = ""
}
Expand Down

0 comments on commit 7f4d971

Please sign in to comment.