Beat head against desk harder
Test / test (push) Failing after 54s Details

This commit is contained in:
Jeff 2024-10-02 01:19:47 -04:00
parent 3a4d670d04
commit 0cd1e061b7
1 changed files with 8 additions and 2 deletions

View File

@ -4,8 +4,14 @@ import * as path from "path"
import { db } from "./database"
import { fileURLToPath } from "url"
let filename = __filename ?? fileURLToPath(import.meta.url)
let dirname = __dirname ?? path.dirname(filename)
let dirname
try {
dirname = __dirname
} catch {
const filename = fileURLToPath(import.meta.url)
dirname = path.dirname(filename)
}
const migrator = new Migrator({
db,