Successfully listing inventory
This commit is contained in:
@ -57,6 +57,9 @@ func (s *inventorysrvc) RemoveItem(ctx context.Context, p *inventory.InventoryRe
|
||||
}
|
||||
|
||||
func (s *inventorysrvc) ListInventory(ctx context.Context, payload *inventory.ListInventoryPayload) (res []string, err error) {
|
||||
if s.inventories[*payload.CharacterName] == nil {
|
||||
return nil, nil
|
||||
}
|
||||
res = *s.inventories[*payload.CharacterName]
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user