Successfully listing inventory
This commit is contained in:
1 parent
a290cd1420
commit
3dc369e944
4 files changed
+72
-15
No files matched your search
@@ -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