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

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2017-09-24 15:31:03 +02:00 committed by GitHub
parent 3f3de38075
commit 909a6d4661
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ const startWorker = (workerId) => {
const transmit = () => { const transmit = () => {
const now = new Date().getTime(); const now = new Date().getTime();
const delta = now - queued_at; 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`); log.silly(req.requestId, `Transmitting for ${req.accountId}: ${event} ${encodedPayload} Delay: ${delta}ms`);
output(event, encodedPayload); output(event, encodedPayload);