Skip to content

Commit

Permalink
fix: migration breaking tests (fehmer) (#5397)
Browse files Browse the repository at this point in the history
!nuf
  • Loading branch information
fehmer authored May 15, 2024
1 parent 66f6b7c commit d9e975b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/__migration__/testActivity.ts
Original file line number Diff line number Diff line change
@@ -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 } };

Expand All @@ -16,7 +16,9 @@ process.on("SIGINT", () => {
appRunning = false;
});

void main();
if (require.main === module) {
void main();
}

async function main(): Promise<void> {
try {
Expand Down

0 comments on commit d9e975b

Please sign in to comment.