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,9 +6,11 @@ async function champions(client: MongoClient, patch: string) {
const collection = database.collection(patch);
const data : Array<ChampionData> = (await collection.find().toArray()) as unknown as Array<ChampionData>
data.map((x) => {
for(let lane of x.lanes) {
delete lane.builds
delete lane.runes
if(x.lanes != undefined && x.lanes != null) {
for(let lane of x.lanes) {
delete lane.builds
delete lane.runes
}
}
})
return data