Skip to content

Commit ac0803e

Browse files
fix(Statement Forwards): Corrects payload parsing (#1591)
1 parent 7026a63 commit ac0803e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: worker/src/handlers/statement/listenForRedisPublish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default () => {
3333
latestResult = payload;
3434
if (payload) {
3535
logger.debug(`Popped '${pubKey}':`, payload);
36-
Statement.findOne({ 'statement.id': payload }, (err, statement) => {
36+
Statement.findOne({ 'statement.id': JSON.parse(payload).statementId }, (err, statement) => {
3737
// get the statement so that we can find its database id
3838
// push it straight into the correct queues
3939
statementHandler({ statementId: statement._id });

0 commit comments

Comments
 (0)