diff --git a/packages/server/src/appMigrations/index.ts b/packages/server/src/appMigrations/index.ts index 3efe38e55a..b1a2b742bc 100644 --- a/packages/server/src/appMigrations/index.ts +++ b/packages/server/src/appMigrations/index.ts @@ -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)