Attempt Twilio inbound fix BOD-130
This commit is contained in:
@@ -77,7 +77,7 @@ exports.receive = (req, res) => {
|
|||||||
},
|
},
|
||||||
tokens: uniqueTokens,
|
tokens: uniqueTokens,
|
||||||
};
|
};
|
||||||
|
res.sendStatus(200);
|
||||||
// Send a message to the device corresponding to the provided
|
// Send a message to the device corresponding to the provided
|
||||||
// registration token.
|
// registration token.
|
||||||
admin
|
admin
|
||||||
@@ -93,18 +93,16 @@ exports.receive = (req, res) => {
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log("Error sending message:", error);
|
console.log("Error sending message:", error);
|
||||||
});
|
});
|
||||||
|
|
||||||
res.status(200).end();
|
|
||||||
})
|
})
|
||||||
.catch((e2) => {
|
.catch((e2) => {
|
||||||
console.log("e2", e2);
|
console.log("e2", e2);
|
||||||
res.status(500).json(e2);
|
res.sendStatus(500).json(e2);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e1) => {
|
.catch((e1) => {
|
||||||
console.log("e1", e1);
|
console.log("e1", e1);
|
||||||
res.status(500).json(e1);
|
res.sendStatus(500).json(e1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user