Skip to content

Commit

Permalink
more info
Browse files Browse the repository at this point in the history
  • Loading branch information
builder-247 committed Jan 23, 2020
1 parent 07a6c26 commit 853755b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions svc/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ const redis = require('../store/redis');
const { getItems, getAuctions } = require('../store/queries');
const { logger, removeFormatting, invokeInterval } = require('../util/utility');

const schemaObject = ({
tier,
category,
item,
}) => {
const schemaObject = (auction) => {
const {
tier,
category,
item,
} = auction;
try {
return {
name: removeFormatting(item.name),
Expand All @@ -21,7 +22,7 @@ const schemaObject = ({
texture: item.attributes.texture,
};
} catch (e) {
logger.warn(`Found bad item in DB: ${JSON.stringify(item)}`);
logger.warn(`Found bad item in DB: ${JSON.stringify(auction)}`);
}
};

Expand Down

0 comments on commit 853755b

Please sign in to comment.