(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000)
| 130 | } |
| 131 | |
| 132 | async function watchPaymentTask(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000) { |
| 133 | return watchDomainTask( |
| 134 | () => api.get(`/payment/ops/tasks/${taskId}`, { |
| 135 | requestKey: `payment:task:${taskId}`, |
| 136 | cancelPrevious: true, |
| 137 | retry: 0, |
| 138 | timeoutMs: 30000, |
| 139 | silentNetworkError: true, |
| 140 | silentTimeoutError: true, |
| 141 | priority: 'low', |
| 142 | }), |
| 143 | onUpdate, |
| 144 | maxWaitMs, |
| 145 | { baseIntervalMs: 1200, maxIntervalMs: 12000 }, |
| 146 | ); |
| 147 | } |
| 148 | |
| 149 | function replaceAccountRowStatus(accountId, nextStatus) { |
| 150 | const normalizedId = Number(accountId || 0); |
no test coverage detected