Fix tests

This commit is contained in:
Adria Navarro 2023-12-05 15:37:45 +01:00
parent c94bd63374
commit 7cf9a915f4
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ export async function getAppMigrationVersion(appId: string): Promise<string> {
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
// We don't want to cache in dev, in order to be able to tweak it
if (metadata && !env.isDev()) {
return metadata.version
}
@ -75,7 +76,7 @@ export async function updateAppMigrationMetadata({
const updatedMigrationDoc: AppMigrationDoc = {
...appMigrationDoc,
version,
version: version || "",
history: {
...appMigrationDoc.history,
[version]: { runAt: new Date().toISOString() },