We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a6c26 commit 853755bCopy full SHA for 853755b
1 file changed
svc/items.js
@@ -7,11 +7,12 @@ const redis = require('../store/redis');
7
const { getItems, getAuctions } = require('../store/queries');
8
const { logger, removeFormatting, invokeInterval } = require('../util/utility');
9
10
-const schemaObject = ({
11
- tier,
12
- category,
13
- item,
14
-}) => {
+const schemaObject = (auction) => {
+ const {
+ tier,
+ category,
+ item,
15
+ } = auction;
16
try {
17
return {
18
name: removeFormatting(item.name),
@@ -21,7 +22,7 @@ const schemaObject = ({
21
22
texture: item.attributes.texture,
23
};
24
} catch (e) {
- logger.warn(`Found bad item in DB: ${JSON.stringify(item)}`);
25
+ logger.warn(`Found bad item in DB: ${JSON.stringify(auction)}`);
26
}
27
28
0 commit comments