This commit is contained in:
Andris Reinman 2017-07-31 01:07:23 +03:00
parent b0a060bc75
commit 34947790a9
2 changed files with 4 additions and 4 deletions

View file

@ -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
},

View file

@ -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": {