Skip to content

Commit b40a82e

Browse files
authored
Merge branch 'main' into branch-deploy-v10
2 parents b80e2f2 + 3035215 commit b40a82e

File tree

3 files changed

+8
-28
lines changed

3 files changed

+8
-28
lines changed

datasources/historical-prices.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class historicalPricesAPI extends WorkerKVSplit {
55
super('historical_price_data', dataSource);
66
this.addGameMode('pve');
77
this.defaultDays = 7;
8-
this.maxDays = 7;
8+
this.maxDays = 30;
99
this.itemLimitDays = 2;
1010
}
1111

@@ -27,9 +27,9 @@ class historicalPricesAPI extends WorkerKVSplit {
2727
if (!prices) {
2828
return [];
2929
}
30-
/*if (days === this.maxDays) {
30+
if (days === this.maxDays) {
3131
return prices;
32-
}*/
32+
}
3333
const cutoffTimestamp = new Date().setDate(new Date().getDate() - days);
3434
let dayFiltered = prices.filter(hp => hp.timestamp >= cutoffTimestamp);
3535
if (halfResults) {

resolvers/itemResolver.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export default {
7676
historicalItemPrices(obj, args, context, info) {
7777
return context.util.paginate(context.data.worker.historicalPrice.getByItemId(context, info, args.id, args.days), args);
7878
},
79-
/*archivedItemPrices(obj, args, context, info) {
79+
archivedItemPrices(obj, args, context, info) {
8080
return context.util.paginate(context.data.worker.archivedPrice.getByItemId(context, info, args.id), args);
81-
},*/
81+
},
8282
armorMaterials(obj, args, context, info) {
8383
return context.data.worker.item.getArmorMaterials(context, info);
8484
},

schema-static.mjs

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,6 @@ type Ammo {
3939
#attributes: AttributeCollection!
4040
}
4141
42-
#type AttributeCollection {
43-
# int: [AttributeInt]!
44-
# float: [AttributeFloat]!
45-
# string: [ItemAttribute]!
46-
# boolean: [AttributeBoolean]!
47-
#}
48-
49-
#type AttributeBoolean {
50-
# name: String!
51-
# value: Boolean!
52-
#}
53-
54-
#type AttributeFloat {
55-
# name: String!
56-
# value: Float!
57-
#}
58-
59-
#type AttributeInt {
60-
# name: String!
61-
# value: Int!
62-
#}
63-
6442
type ArmorMaterial {
6543
id: String
6644
name: String
@@ -234,6 +212,8 @@ type HideoutStationLevel {
234212
type historicalPricePoint {
235213
price: Int
236214
priceMin: Int
215+
offerCount: Int
216+
offerCountMin: Int
237217
timestamp: String
238218
}
239219
@@ -1395,7 +1375,7 @@ interface Vendor {
13951375
type Query {
13961376
achievements(lang: LanguageCode, limit: Int, offset: Int): [Achievement]!
13971377
ammo(lang: LanguageCode, gameMode: GameMode, limit: Int, offset: Int): [Ammo]
1398-
#archivedItemPrices(id: ID!, limit: Int, offset: Int): [historicalPricePoint]!
1378+
archivedItemPrices(id: ID!, limit: Int, offset: Int): [historicalPricePoint]!
13991379
barters(lang: LanguageCode, gameMode: GameMode, limit: Int, offset: Int): [Barter]
14001380
bosses(lang: LanguageCode, gameMode: GameMode, name: [String!], limit: Int, offset: Int): [MobInfo]
14011381
crafts(lang: LanguageCode, gameMode: GameMode, limit: Int, offset: Int): [Craft]

0 commit comments

Comments
 (0)