diff --git a/packages/server/src/appMigrations/appMigrationMetadata.ts b/packages/server/src/appMigrations/appMigrationMetadata.ts index 97d3623d82..b8db0e3c0e 100644 --- a/packages/server/src/appMigrations/appMigrationMetadata.ts +++ b/packages/server/src/appMigrations/appMigrationMetadata.ts @@ -3,7 +3,7 @@ import { Database, DocumentType, Document } from "@budibase/types" export interface AppMigrationDoc extends Document { version: string - history: Record + history: Record } const EXPIRY_SECONDS = Duration.fromDays(1).toSeconds() @@ -78,7 +78,7 @@ export async function updateAppMigrationMetadata({ version, history: { ...appMigrationDoc.history, - [version]: { runAt: Date.now() }, + [version]: { runAt: new Date().toISOString() }, }, } await db.put(updatedMigrationDoc)