Beat head against desk harder
Test / test (push) Failing after 54s
Details
Test / test (push) Failing after 54s
Details
This commit is contained in:
parent
3a4d670d04
commit
0cd1e061b7
|
|
@ -4,8 +4,14 @@ import * as path from "path"
|
||||||
import { db } from "./database"
|
import { db } from "./database"
|
||||||
import { fileURLToPath } from "url"
|
import { fileURLToPath } from "url"
|
||||||
|
|
||||||
let filename = __filename ?? fileURLToPath(import.meta.url)
|
let dirname
|
||||||
let dirname = __dirname ?? path.dirname(filename)
|
|
||||||
|
try {
|
||||||
|
dirname = __dirname
|
||||||
|
} catch {
|
||||||
|
const filename = fileURLToPath(import.meta.url)
|
||||||
|
dirname = path.dirname(filename)
|
||||||
|
}
|
||||||
|
|
||||||
const migrator = new Migrator({
|
const migrator = new Migrator({
|
||||||
db,
|
db,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue