Browse Source

Fix streaming API double-JSON-encoding status IDs for deletes (#5069)

tags/v2.0.0rc1
Eugen Rochko GitHub 2 years ago
parent
commit
909a6d4661
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      streaming/index.js

+ 1
- 1
streaming/index.js View File

@@ -264,7 +264,7 @@ const startWorker = (workerId) => {
const transmit = () => {
const now = new Date().getTime();
const delta = now - queued_at;
const encodedPayload = typeof payload === 'number' ? payload : JSON.stringify(payload);
const encodedPayload = typeof payload === 'object' ? JSON.stringify(payload) : payload;

log.silly(req.requestId, `Transmitting for ${req.accountId}: ${event} ${encodedPayload} Delay: ${delta}ms`);
output(event, encodedPayload);


Loading…
Cancel
Save