From fe8d073cbcf878f1bf315cd9c299b13ba94d8e80 Mon Sep 17 00:00:00 2001 From: Sebastian-Webster Date: Tue, 17 Oct 2023 21:20:28 +1300 Subject: [PATCH] temp/getuserblockedaccounts now returns blocked accounts properly --- controllers/Temp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/Temp.js b/controllers/Temp.js index 9ab4388c..dda3384d 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -5274,7 +5274,7 @@ class TempController { if (blockedAccounts.length === 0) return resolve(HTTPWTHandler.OK('Successfully found blocked accounts', [])) - User.find({secondId: {$in: blockedAccounts}}).lean(blockedUsers => { + User.find({secondId: {$in: blockedAccounts}}).lean().then(blockedUsers => { const publicInformation = blockedUsers.map(user => { return userHandler.returnPublicInformation(user, userFound) })