mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-07 15:15:49 +08:00
parent
66f6b7c355
commit
d9e975b286
1 changed files with 5 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
import "dotenv/config";
|
||||
import * as DB from "../src/init/db";
|
||||
import { Collection, Db } from "mongodb";
|
||||
import { DBResult } from "../src/dal/result";
|
||||
|
||||
import readlineSync from "readline-sync";
|
||||
|
||||
let appRunning = true;
|
||||
let db: Db | undefined;
|
||||
let userCollection: Collection<MonkeyTypes.DBUser>;
|
||||
let resultCollection: Collection<DBResult>;
|
||||
let resultCollection: Collection<MonkeyTypes.DBResult>;
|
||||
|
||||
const filter = { testActivity: { $exists: false } };
|
||||
|
||||
|
@ -16,7 +16,9 @@ process.on("SIGINT", () => {
|
|||
appRunning = false;
|
||||
});
|
||||
|
||||
void main();
|
||||
if (require.main === module) {
|
||||
void main();
|
||||
}
|
||||
|
||||
async function main(): Promise<void> {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue