From 9c8fff36290b48ceffc0b8fc41ad08dd9ee7bc1e Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 15 Feb 2024 20:50:17 -0300 Subject: [PATCH] fix(all): Working with no Azure Search. --- packages/core.gbapp/services/GBDeployer.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index 2b3e9cf7..8936dd9a 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -767,16 +767,14 @@ export class GBDeployer implements IGBDeployer { * its index based on .gbkb structure. */ public async rebuildIndex(instance: IGBInstance, searchSchema: any) { - // Prepares search. - let release; - // TODO: Semaphore logic. - //try { + const key = instance.searchKey ? instance.searchKey : GBServer.globals.minBoot.instance.searchKey; GBLogEx.info(instance.instanceId, `rebuildIndex running...`); - // release = await GBServer.globals.indexSemaphore.acquire(); - // GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`); - const key = instance.searchKey ? instance.searchKey : GBServer.globals.minBoot.instance.searchKey; + if (!key){ + + return; + } const searchIndex = instance.searchIndex ? instance.searchIndex : GBServer.globals.minBoot.instance.searchIndex; const searchIndexer = instance.searchIndexer ? instance.searchIndexer