From edeeb49614d0573ec52672880a099d5679408599 Mon Sep 17 00:00:00 2001 From: nikugogoi Date: Mon, 12 Dec 2022 15:48:03 +0530 Subject: [PATCH] Load record names in `getRecordsByIds` GQL query (#67) * Fix variable rename * Load names in getRecordsByIds GQL query --- gql/graphiql.go | 2 +- x/nameservice/keeper/keeper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gql/graphiql.go b/gql/graphiql.go index 75c6a3b8..92bf2eb8 100644 --- a/gql/graphiql.go +++ b/gql/graphiql.go @@ -33,7 +33,7 @@ func PlaygroundHandler(apiURL string) http.HandlerFunc { } w.Header().Set("Content-Type", "text/html") err := page.Execute(w, map[string]interface{}{ - "apiUrl": apiURL, + "apiURL": apiURL, }) if err != nil { panic(err) diff --git a/x/nameservice/keeper/keeper.go b/x/nameservice/keeper/keeper.go index be86d0b4..d951e8ea 100644 --- a/x/nameservice/keeper/keeper.go +++ b/x/nameservice/keeper/keeper.go @@ -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.