From cc17197dbbd0b5c94257eb04d1bb414e979a16f5 Mon Sep 17 00:00:00 2001 From: Fabian Castillo Date: Wed, 29 Jan 2020 20:34:51 -0800 Subject: [PATCH] fix(server): make sure sync imports happen --- apps/server/src/modules/engine/registry.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/modules/engine/registry.ts b/apps/server/src/modules/engine/registry.ts index d0050f225..57f622fba 100644 --- a/apps/server/src/modules/engine/registry.ts +++ b/apps/server/src/modules/engine/registry.ts @@ -50,8 +50,8 @@ export async function getInitializedEngine( const engineExists = await engine.exists(); const isNewEngine = !engineExists || opts.forceCreate; await initEngine(engine, opts); - if (isNewEngine && !opts.syncImportsOnCreation) { - engine.build({ syncImports: true }); + if (isNewEngine && opts.syncImportsOnCreation) { + await engine.build({ syncImports: true }); } initTimer.done('EngineInit');