Fix tests.

This commit is contained in:
Sam Rose 2024-12-09 09:35:01 +00:00
parent 84927bbb98
commit 509950d368
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View File

@ -35,7 +35,7 @@ export const backPopulateMigrations = async (opts: MigrationNoOpOptions) => {
// filter migrations to the type and populate a no-op migration
const migrations: Migration[] = DEFINITIONS.filter(
def => def.type === opts.type
).map(d => ({ ...d, fn: () => {} }))
).map(d => ({ ...d, fn: async () => {} }))
await runMigrations(migrations, { noOp: opts })
}

@ -1 +1 @@
Subproject commit e49ac51191d88787912673366d350d36987354fd
Subproject commit b2f2e2b9d45906744196875b87a121948e8e4c09

View File

@ -1,6 +1,8 @@
import { Database } from "./db"
export interface Migration extends MigrationDefinition {
appOpts?: object
fn: () => void
fn: (db: Database) => Promise<void>
silent?: boolean
preventRetry?: boolean
}