bugfix (oopsie)
This commit is contained in:
@@ -6,10 +6,12 @@ async function champions(client: MongoClient, patch: string) {
|
|||||||
const collection = database.collection(patch);
|
const collection = database.collection(patch);
|
||||||
const data : Array<ChampionData> = (await collection.find().toArray()) as unknown as Array<ChampionData>
|
const data : Array<ChampionData> = (await collection.find().toArray()) as unknown as Array<ChampionData>
|
||||||
data.map((x) => {
|
data.map((x) => {
|
||||||
|
if(x.lanes != undefined && x.lanes != null) {
|
||||||
for(let lane of x.lanes) {
|
for(let lane of x.lanes) {
|
||||||
delete lane.builds
|
delete lane.builds
|
||||||
delete lane.runes
|
delete lane.runes
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user