Basic refactor of 'sqlite2mongo'.

This commit is contained in:
BurnyLlama 2021-09-26 18:26:49 +02:00
parent 03a99e7046
commit 13cd9d643b

View File

@ -1,9 +1,6 @@
import betterSqlite3 from 'better-sqlite3'
import { raw } from 'express'
import mongoose from 'mongoose'
import Finish from '../schemas/Finishes.js'
import Level from '../schemas/Level.js'
import Player from '../schemas/Player.js'
function log(string) {
console.log(`sqlite2mongo >>> ${string}`)
@ -30,7 +27,6 @@ export default async function() {
let addedMapCount = 0
console.log({ allMaps, newMapAmount, addedMapCount })
for (let map of allMaps) {
log("OOMPA")
Level.create({
name: map.Map,
mapper: map.Mapper,