Do not use cache for dev
This commit is contained in:
parent
bbcbb58658
commit
45fcf2c143
|
@ -21,7 +21,7 @@ export async function getAppMigrationMetadata(appId: string): Promise<string> {
|
||||||
const cacheKey = `appmigrations_${env.VERSION}_${appId}`
|
const cacheKey = `appmigrations_${env.VERSION}_${appId}`
|
||||||
|
|
||||||
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
|
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
|
||||||
if (!metadata) {
|
if (!metadata || env.isDev()) {
|
||||||
try {
|
try {
|
||||||
metadata = await populateFromDB(appId)
|
metadata = await populateFromDB(appId)
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
|
Loading…
Reference in New Issue