Successfully listing inventory

This commit is contained in:
Brandon Watson committed 2023-08-14 21:58:52 -05:00
1 parent a290cd1420
commit 3dc369e944
4 files changed
+72 -15

No files matched your search

+3
View File
@@ -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