Load names in getRecordsByIds GQL query

This commit is contained in:
nabarun 2022-12-12 15:42:14 +05:30
parent a13ec23260
commit d3c93f9eae

View File

@ -107,7 +107,7 @@ func (k Keeper) GetRecord(ctx sdk.Context, id string) (record types.Record) {
store := ctx.KVStore(k.storeKey)
result := store.Get(GetRecordIndexKey(id))
k.cdc.MustUnmarshal(result, &record)
return record
return recordObjToRecord(store, record)
}
// ListRecords - get all records.