@konplit-services/common 1.0.141 → 1.0.143
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.
package/build/app.configs.d.ts
CHANGED
package/build/app.configs.js
CHANGED
|
@@ -41,6 +41,12 @@ class AppConfigs {
|
|
|
41
41
|
}
|
|
42
42
|
return this.env.MONGO_URI_MERCHANT;
|
|
43
43
|
}
|
|
44
|
+
getVirtualAccountDBURI() {
|
|
45
|
+
if (!this.env.MONGO_URI_VIRTUAL_ACCOUNT) {
|
|
46
|
+
throw new Error("MONGO_URI_VIRTUAL_ACCOUNT is required");
|
|
47
|
+
}
|
|
48
|
+
return this.env.MONGO_URI_VIRTUAL_ACCOUNT;
|
|
49
|
+
}
|
|
44
50
|
getWalletDBURI() {
|
|
45
51
|
if (!this.env.MONGO_URI_WALLET) {
|
|
46
52
|
throw new Error("MONGO_URI_WALLET is required");
|
|
@@ -91,7 +91,7 @@ class Listener {
|
|
|
91
91
|
// Decode the request data
|
|
92
92
|
const decodedRequest = this.jc.decode(msg.data);
|
|
93
93
|
console.log("Received Request:", decodedRequest);
|
|
94
|
-
const response = this.onMessageResponse(decodedRequest, msg);
|
|
94
|
+
const response = yield this.onMessageResponse(decodedRequest, msg);
|
|
95
95
|
// Send a reply back
|
|
96
96
|
msg.respond(this.jc.encode({ data: response }));
|
|
97
97
|
}
|