Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wsderte committed Nov 10, 2023
1 parent 5ea7398 commit 5ebe27b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions adapters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions adapters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5ebe27b

Please sign in to comment.