From 4434cb5e1ff4414da874b62997da5ea41892a286 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 6 Nov 2023 12:30:23 +0200 Subject: [PATCH] fix(mailbox-create): Use correct database for loading User data when creating mailboxes (#550) --- lib/mailbox-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailbox-handler.js b/lib/mailbox-handler.js index 641b2c41..aa8be17d 100644 --- a/lib/mailbox-handler.js +++ b/lib/mailbox-handler.js @@ -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');