fixed error

This commit is contained in:
Andris Reinman 2017-12-26 23:25:26 +02:00
parent 27f5233826
commit be668d1c1d

View file

@ -310,7 +310,7 @@ function clearExpiredMessages() {
return db.database.collection('messagelog').insertOne( return db.database.collection('messagelog').insertOne(
{ {
id: messageData.meta.queueId || messageData._id.toString(), id: (messageData.meta && messageData.meta.queueId) || messageData._id.toString(),
action: 'DELETED', action: 'DELETED',
parentId: messageData._id, parentId: messageData._id,
created: new Date() created: new Date()