Fix tests and actually use the account name
This commit is contained in:
parent
42534ac545
commit
4c76530832
3 changed files with 12 additions and 7 deletions
|
@ -47,6 +47,7 @@ func (a *Accountant) RegisterAccount(name string) (acc Account, err error) {
|
|||
|
||||
// Set the account ID to a new UUID
|
||||
acc.Id = uuid.New()
|
||||
acc.Name = name
|
||||
|
||||
// Verify this acount isn't already registered
|
||||
for _, a := range a.Accounts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue