Fix test when no migrations exist

This commit is contained in:
Adria Navarro 2023-12-05 14:09:59 +01:00
parent d289a8869a
commit e12fc874c8
1 changed files with 1 additions and 1 deletions

View File

@ -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)