working commit
This commit is contained in:
@@ -216,7 +216,7 @@ type GetAccountParams struct {
|
||||
AccountID string
|
||||
}
|
||||
type GetAccountResult struct {
|
||||
AccountDescr *descr.AccountShortDescr
|
||||
Account *descr.AccountShortDescr `json:"accountDescr"`
|
||||
}
|
||||
|
||||
func (oper *Operator) GetAccount(ctx context.Context, params *GetAccountParams) (*GetAccountResult, error) {
|
||||
@@ -260,6 +260,6 @@ func (oper *Operator) GetAccount(ctx context.Context, params *GetAccountParams)
|
||||
accountShortDescr.Grants = append(accountShortDescr.Grants, grantShortDescrs)
|
||||
}
|
||||
|
||||
res.AccountDescr = accountShortDescr
|
||||
res.Account = accountShortDescr
|
||||
return res, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user