From 5ebe27be4ae32fee58e5c8764913da133195a209 Mon Sep 17 00:00:00 2001 From: wsderte Date: Fri, 10 Nov 2023 13:43:52 +0200 Subject: [PATCH] fix tests --- adapters/index.js | 1 + adapters/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/adapters/index.js b/adapters/index.js index d104f308..780f8048 100644 --- a/adapters/index.js +++ b/adapters/index.js @@ -111,6 +111,7 @@ class Adapter { } if (!adapterName) { this.instancePromotionAdapter = new promotionAdapter_1.PromotionAdapter; + return this.instancePromotionAdapter; } let adapterLocation = this.WEBRESTO_MODULES_PATH + "/" + adapterName.toLowerCase() + "-promotion-adapter"; adapterLocation = fs.existsSync(adapterLocation) ? adapterLocation : "@webresto/" + adapterName.toLowerCase() + "-promotion-adapter"; diff --git a/adapters/index.ts b/adapters/index.ts index e86fdf5a..a9c194b5 100644 --- a/adapters/index.ts +++ b/adapters/index.ts @@ -102,6 +102,7 @@ export class Adapter { if (!adapterName) { this.instancePromotionAdapter = new PromotionAdapter; + return this.instancePromotionAdapter } let adapterLocation = this.WEBRESTO_MODULES_PATH + "/" + adapterName.toLowerCase() + "-promotion-adapter";