Fix test when no migrations exist
This commit is contained in:
parent
d289a8869a
commit
e12fc874c8
|
@ -8,7 +8,7 @@ export const latestMigration = MIGRATIONS.map(m => m.migrationId)
|
|||
.sort()
|
||||
.reverse()[0]
|
||||
|
||||
const getTimestamp = (versionId: string) => versionId.split("_")[0]
|
||||
const getTimestamp = (versionId: string) => versionId?.split("_")[0]
|
||||
|
||||
export async function checkMissingMigrations(appId: string) {
|
||||
const currentVersion = await getAppMigrationVersion(appId)
|
||||
|
|
Loading…
Reference in New Issue