Commit 3de834b6 authored by CompileNix's avatar CompileNix

fix TypeError: Cannot read property 'toString' of undefined

parent 980e9f50
......@@ -35,7 +35,8 @@ async function notificationQueueWorker() {
const oldSubject = message.expression.subject;
if (typeof (message.expression.subject) !== 'function') {
var oldSubjectValue = message.expression.subject.toString();
var oldSubjectValue = '';
if (message.expression.subject.toString) oldSubjectValue = message.expression.subject.toString();
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