|
@@ -34,9 +34,6 @@ func (company *Company) Update(data map[string]interface{}) error { |
|
@@ -34,9 +34,6 @@ func (company *Company) Update(data map[string]interface{}) error { |
34
|
if companyId, ok := data["companyId"]; ok {
|
34
|
if companyId, ok := data["companyId"]; ok {
|
35
|
company.CompanyId = companyId.(int64)
|
35
|
company.CompanyId = companyId.(int64)
|
36
|
}
|
36
|
}
|
37
|
- if companyId, ok := data["companyId"]; ok {
|
|
|
38
|
- company.CompanyInfo.CompanyId = companyId.(int64)
|
|
|
39
|
- }
|
|
|
40
|
if name, ok := data["name"]; ok {
|
37
|
if name, ok := data["name"]; ok {
|
41
|
company.CompanyInfo.Name = name.(string)
|
38
|
company.CompanyInfo.Name = name.(string)
|
42
|
}
|
39
|
}
|