This commit is contained in:
Adria Navarro 2023-12-05 12:42:09 +01:00
parent 8c1d0d1e4e
commit 69864a174a
1 changed files with 6 additions and 5 deletions

View File

@ -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
})