@konplit-services/common 1.0.202 → 1.0.203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,7 @@ declare class AppConfigs {
119
119
  getWebsiteDBURI(): string;
120
120
  getSettlementDBURI(): string;
121
121
  getOpayDBURI(): string;
122
+ getKoreDBURI(): string;
122
123
  getNATSPassword(): string;
123
124
  getNATSUsername(): string;
124
125
  getSettlementInterval(): string;
@@ -95,6 +95,12 @@ class AppConfigs {
95
95
  }
96
96
  return this.env.MONGO_OPAY_URI;
97
97
  }
98
+ getKoreDBURI() {
99
+ if (!this.env.MONGO_KORE_URI) {
100
+ throw new Error("MONGO_KORE_URI is required");
101
+ }
102
+ return this.env.MONGO_KORE_URI;
103
+ }
98
104
  getNATSPassword() {
99
105
  if (!this.env.NATS_PASSWORD) {
100
106
  throw new Error("NATS_PASSWORD is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.202",
3
+ "version": "1.0.203",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",