Skip to content

Commit

Permalink
Merge pull request #90 from the-hideout/vendor-normalized-name
Browse files Browse the repository at this point in the history
add normalizedName to Vendor interface
  • Loading branch information
Razzmatazzz authored Aug 14, 2022
2 parents ee5d30d + b99649d commit 9b9c1ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resolvers/traderResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ module.exports = {
async name(data, args, context, info) {
return context.util.getLocale(await context.data.trader.get(data.trader_id), 'name', info);
},
async normalizedName(data, args, context) {
return (await context.data.trader.get(data.trader_id)).normalizedName;
},
trader(data, args, context) {
return context.data.trader.get(data.trader_id);
},
Expand Down
2 changes: 2 additions & 0 deletions schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ enum TraderName {
type TraderOffer implements Vendor {
name: String!
normalizedName: String!
trader: Trader!
#traderLevel: TraderLevel!
minTraderLevel: Int
Expand All @@ -903,6 +904,7 @@ type TraderStanding {
interface Vendor {
name: String!
normalizedName: String!
}
#union Vendor = TraderOffer | FleaMarket
Expand Down

0 comments on commit 9b9c1ad

Please sign in to comment.