@alizadefaig/pos-server 1.2.23 → 1.2.24
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/app/socket/server.js +4 -1
- package/package.json +1 -1
package/app/socket/server.js
CHANGED
|
@@ -15,7 +15,10 @@ const PRINT_EVENTS = new Set(['orders.sendToWorkshops', 'orders.printBillReceip
|
|
|
15
15
|
const FISCAL_EVENTS = new Set(['fiscal.register', 'fiscal.close']);
|
|
16
16
|
function getUpstreamTimeout(event) {
|
|
17
17
|
if (FISCAL_EVENTS.has(event)) return 180000;
|
|
18
|
-
|
|
18
|
+
// В СИНХРОННОМ режиме печати этот вызов оборачивает весь круг печати на Laravel
|
|
19
|
+
// (pool 120с + Node /socket/request 90с). Должен пережить его → 150с.
|
|
20
|
+
// В АСИНХРОННОМ режиме Laravel отвечает мгновенно, запас не мешает.
|
|
21
|
+
if (PRINT_EVENTS.has(event)) return 150000;
|
|
19
22
|
return 15000;
|
|
20
23
|
}
|
|
21
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alizadefaig/pos-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"description": "Server in express js with Proxy to Main server if need and will work with Electron JS",
|
|
5
5
|
"homepage": "https://gitlab.com/faigalizade/pos-server#readme",
|
|
6
6
|
"bugs": {
|