bugfix (oopsie)
All checks were successful
pipeline / build-and-push-images (push) Successful in 24s
pipeline / deploy (push) Successful in 6s

This commit is contained in:
2024-11-29 18:57:29 +01:00
parent b87e0db676
commit 0dfe515538

View File

@@ -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
} }