Skip to content

Commit

Permalink
fix(mailbox-create): Use correct database for loading User data when …
Browse files Browse the repository at this point in the history
…creating mailboxes (#550)
  • Loading branch information
andris9 committed Nov 6, 2023
1 parent 48b9efb commit 4434cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailbox-handler.js
Expand Up @@ -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');
Expand Down

0 comments on commit 4434cb5

Please sign in to comment.