@konplit-services/common 1.0.243 → 1.0.244

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.
@@ -117,6 +117,7 @@ declare class AppConfigs {
117
117
  getAccountDBURI(): string;
118
118
  getMerchantDBURI(): string;
119
119
  getMonoDBURI(): string;
120
+ getRevenueDBURI(): string;
120
121
  getQRPaymentDBURI(): string;
121
122
  getTransferDBURI(): string;
122
123
  getInvoiceDBURI(): string;
@@ -47,6 +47,12 @@ class AppConfigs {
47
47
  }
48
48
  return this.env.MONGO_URI_MONO;
49
49
  }
50
+ getRevenueDBURI() {
51
+ if (!this.env.MONGO_REVENUE_URI) {
52
+ throw new Error("MONGO_REVENUE_URI is required");
53
+ }
54
+ return this.env.MONGO_REVENUE_URI;
55
+ }
50
56
  getQRPaymentDBURI() {
51
57
  if (!this.env.MONGO_URI_QRPAYMENT) {
52
58
  throw new Error("MONGO_URI_QRPAYMENT is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.243",
3
+ "version": "1.0.244",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",