1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Fix tests

This commit is contained in:
Adria Navarro 2023-12-05 15:37:45 +01:00
parent c94bd63374
commit 7cf9a915f4

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() },