Load record names in getRecordsByIds GQL query #67

Merged
nikugogoi merged 2 commits from ng-fix-variable into console 2022-12-12 10:18:04 +00:00
Showing only changes of commit d3c93f9eae - Show all commits

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.