@konplit-services/common 1.0.58 → 1.0.60
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.
|
@@ -102,7 +102,7 @@ class Listener {
|
|
|
102
102
|
max_consumers: -1,
|
|
103
103
|
retention: nats_1.RetentionPolicy.Limits,
|
|
104
104
|
max_msgs: 10000,
|
|
105
|
-
max_bytes:
|
|
105
|
+
max_bytes: 1 * 1024 * 1024 * 1024,
|
|
106
106
|
max_age: 14 * 24 * 3600 * 1000, // 2 weeks in milliseconds
|
|
107
107
|
};
|
|
108
108
|
yield jsm.streams.add(streamConfig);
|
|
@@ -19,8 +19,11 @@ const sendSms = (request) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
19
19
|
var _a;
|
|
20
20
|
const url = "https://api.ng.termii.com/api/sms/send";
|
|
21
21
|
const query = new node_url_1.URLSearchParams(Object.assign({}, request));
|
|
22
|
+
console.log("====================================");
|
|
23
|
+
console.log(`${url}?${query.toString()}`);
|
|
24
|
+
console.log("====================================");
|
|
22
25
|
try {
|
|
23
|
-
const response = yield axios_1.default.post(`${url}?${query.toString()}
|
|
26
|
+
const response = yield axios_1.default.post(`${url}?${query.toString()}`, {}, { headers: {} });
|
|
24
27
|
return response.data;
|
|
25
28
|
}
|
|
26
29
|
catch (error) {
|