mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
fix(mailbox-create): Use correct database for loading User data when creating mailboxes (#550)
This commit is contained in:
parent
48b9efb8ca
commit
4434cb5e1f
|
@ -31,7 +31,7 @@ class MailboxHandler {
|
|||
}
|
||||
|
||||
async createAsync(user, path, opts) {
|
||||
const userData = await this.database.collection('users').findOne({ _id: user }, { projection: { retention: true } });
|
||||
const userData = await this.users.collection('users').findOne({ _id: user }, { projection: { retention: true } });
|
||||
|
||||
if (!userData) {
|
||||
const err = new Error('This user does not exist');
|
||||
|
|
Loading…
Reference in a new issue