Skip to content

Commit 853755b

Browse files
committed
more info
1 parent 07a6c26 commit 853755b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

svc/items.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ const redis = require('../store/redis');
77
const { getItems, getAuctions } = require('../store/queries');
88
const { logger, removeFormatting, invokeInterval } = require('../util/utility');
99

10-
const schemaObject = ({
11-
tier,
12-
category,
13-
item,
14-
}) => {
10+
const schemaObject = (auction) => {
11+
const {
12+
tier,
13+
category,
14+
item,
15+
} = auction;
1516
try {
1617
return {
1718
name: removeFormatting(item.name),
@@ -21,7 +22,7 @@ const schemaObject = ({
2122
texture: item.attributes.texture,
2223
};
2324
} catch (e) {
24-
logger.warn(`Found bad item in DB: ${JSON.stringify(item)}`);
25+
logger.warn(`Found bad item in DB: ${JSON.stringify(auction)}`);
2526
}
2627
};
2728

0 commit comments

Comments
 (0)