From 69864a174ad0151af77463388d3a1ac1f97f6e39 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 5 Dec 2023 12:42:09 +0100 Subject: [PATCH] Fix --- packages/server/src/api/controllers/application.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index a6352be44b..c468038f54 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -335,13 +335,14 @@ async function performAppCreate(ctx: UserCtx) { /* istanbul ignore next */ if (!env.isTest()) { await createApp(appId) - // Initialise app migration version - await appMigrations.updateAppMigrationMetadata({ - appId, - version: appMigrations.latestMigration, - }) } + // Initialise app migration version + await appMigrations.updateAppMigrationMetadata({ + appId, + version: appMigrations.latestMigration, + }) + await cache.app.invalidateAppMetadata(appId, newApplication) return newApplication })