Basic refactor of 'sqlite2mongo'.
This commit is contained in:
parent
03a99e7046
commit
13cd9d643b
|
@ -1,9 +1,6 @@
|
||||||
import betterSqlite3 from 'better-sqlite3'
|
import betterSqlite3 from 'better-sqlite3'
|
||||||
import { raw } from 'express'
|
|
||||||
import mongoose from 'mongoose'
|
import mongoose from 'mongoose'
|
||||||
import Finish from '../schemas/Finishes.js'
|
|
||||||
import Level from '../schemas/Level.js'
|
import Level from '../schemas/Level.js'
|
||||||
import Player from '../schemas/Player.js'
|
|
||||||
|
|
||||||
function log(string) {
|
function log(string) {
|
||||||
console.log(`sqlite2mongo >>> ${string}`)
|
console.log(`sqlite2mongo >>> ${string}`)
|
||||||
|
@ -30,7 +27,6 @@ export default async function() {
|
||||||
let addedMapCount = 0
|
let addedMapCount = 0
|
||||||
console.log({ allMaps, newMapAmount, addedMapCount })
|
console.log({ allMaps, newMapAmount, addedMapCount })
|
||||||
for (let map of allMaps) {
|
for (let map of allMaps) {
|
||||||
log("OOMPA")
|
|
||||||
Level.create({
|
Level.create({
|
||||||
name: map.Map,
|
name: map.Map,
|
||||||
mapper: map.Mapper,
|
mapper: map.Mapper,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user