From 34947790a9ca2503256f62fa7c1c25012a83aa59 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 31 Jul 2017 01:07:23 +0300 Subject: [PATCH] v1.0.61 --- lib/message-handler.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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": {