Skip to content

Commit

Permalink
debug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
builder-247 committed Jan 23, 2020
1 parent 486f4b1 commit 07a6c26
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions svc/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ const schemaObject = ({
tier,
category,
item,
}) => ({
name: removeFormatting(item.name),
tier,
category,
item_id: item.item_id,
texture: item.attributes.texture,
});
}) => {
try {
return {
name: removeFormatting(item.name),
tier,
category,
item_id: item.item_id,
texture: item.attributes.texture,
};
} catch (e) {
logger.warn(`Found bad item in DB: ${JSON.stringify(item)}`);
}
};

function doItems(cb) {
getItems((err, ids) => {
Expand Down

0 comments on commit 07a6c26

Please sign in to comment.