refactor: make match-collector export its types, and consume them in frontend
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { MongoClient } from 'mongodb'
|
||||
import type { ChampionData } from 'match_collector'
|
||||
import { connectToDatabase, fetchLatestPatch } from '../utils/mongo'
|
||||
|
||||
async function champions(client: MongoClient, patch: string) {
|
||||
@@ -11,7 +12,6 @@ async function champions(client: MongoClient, patch: string) {
|
||||
if (x.lanes != undefined && x.lanes != null) {
|
||||
for (const lane of x.lanes) {
|
||||
delete lane.builds
|
||||
delete lane.runes
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user