Commit e7ec91e6 authored by CompileNix's avatar CompileNix

fix fix TypeError: Cannot read property 'toString' of undefined

parent fcce29c1
......@@ -36,7 +36,7 @@ async function notificationQueueWorker() {
const oldSubject = message.expression.subject;
if (typeof (message.expression.subject) !== 'function') {
var oldSubjectValue = '';
if (message.expression.subject.toString) oldSubjectValue = message.expression.subject.toString();
if (!message.expression.subject.toString) oldSubjectValue = '';
message.expression.subject = () => oldSubjectValue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment