Skip to content

Commit

Permalink
fix(Statement Forwards): Corrects payload parsing (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwinokur authored Aug 3, 2021
1 parent 7026a63 commit ac0803e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/src/handlers/statement/listenForRedisPublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default () => {
latestResult = payload;
if (payload) {
logger.debug(`Popped '${pubKey}':`, payload);
Statement.findOne({ 'statement.id': payload }, (err, statement) => {
Statement.findOne({ 'statement.id': JSON.parse(payload).statementId }, (err, statement) => {
// get the statement so that we can find its database id
// push it straight into the correct queues
statementHandler({ statementId: statement._id });
Expand Down

0 comments on commit ac0803e

Please sign in to comment.