Do not use cache for dev

This commit is contained in:
Adria Navarro 2023-11-27 15:59:23 +01:00
parent bbcbb58658
commit 45fcf2c143
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export async function getAppMigrationMetadata(appId: string): Promise<string> {
const cacheKey = `appmigrations_${env.VERSION}_${appId}`
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
if (!metadata) {
if (!metadata || env.isDev()) {
try {
metadata = await populateFromDB(appId)
} catch (err: any) {