Fix assert when looking for MSGID
This commit is contained in:
@@ -383,10 +383,9 @@ function FTNMessageScanTossModule() {
|
|||||||
return cb(null); // nothing to do
|
return cb(null); // nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
Message.getMetaValuesByMessageId(message.replyToMsgId, 'FtnKludge', 'MSGID', (err, msgIdVal) => {
|
Message.getMetaValuesByMessageId(message.replyToMsgId, 'FtnKludge', 'MSGID', (err, msgIdVal) => {
|
||||||
assert(_.isString(msgIdVal));
|
if(!err) {
|
||||||
|
assert(_.isString(msgIdVal), 'Expected string but got ' + (typeof msgIdVal) + ' (' + msgIdVal + ')');
|
||||||
if(!err) {
|
|
||||||
// got a MSGID - create a REPLY
|
// got a MSGID - create a REPLY
|
||||||
message.meta.FtnKludge.REPLY = msgIdVal;
|
message.meta.FtnKludge.REPLY = msgIdVal;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user