diff --git a/lib/message-handler.js b/lib/message-handler.js index 3ad91fdc..b526ce25 100644 --- a/lib/message-handler.js +++ b/lib/message-handler.js @@ -210,7 +210,7 @@ class MessageHandler { .filter(html => html); } - this.database.collection('users').findOneAndUpdate({ + this.users.collection('users').findOneAndUpdate({ _id: mailboxData.user }, { $inc: { @@ -222,7 +222,7 @@ class MessageHandler { } let rollback = err => { - this.database.collection('users').findOneAndUpdate({ + this.users.collection('users').findOneAndUpdate({ _id: mailboxData.user }, { $inc: { @@ -450,7 +450,7 @@ class MessageHandler { updateQuota(mailboxData, inc, callback) { inc = inc || {}; - this.database.collection('users').findOneAndUpdate( + this.users.collection('users').findOneAndUpdate( { _id: mailboxData.user }, diff --git a/package.json b/package.json index 9ec52fd5..01b5edb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wildduck", - "version": "1.0.60", + "version": "1.0.61", "description": "IMAP server built with Node.js and MongoDB", "main": "server.js", "scripts": {