There was an error while loading. Please reload this page.
1 parent 7026a63 commit ac0803eCopy full SHA for ac0803e
worker/src/handlers/statement/listenForRedisPublish.js
@@ -33,7 +33,7 @@ export default () => {
33
latestResult = payload;
34
if (payload) {
35
logger.debug(`Popped '${pubKey}':`, payload);
36
- Statement.findOne({ 'statement.id': payload }, (err, statement) => {
+ Statement.findOne({ 'statement.id': JSON.parse(payload).statementId }, (err, statement) => {
37
// get the statement so that we can find its database id
38
// push it straight into the correct queues
39
statementHandler({ statementId: statement._id });
0 commit comments