Skip to content

Commit

Permalink
Merge pull request #211 from SquareTable/210-tempgetuserblockedaccoun…
Browse files Browse the repository at this point in the history
…ts-fails-to-load-blocked-accounts

temp/getuserblockedaccounts now returns blocked accounts properly
  • Loading branch information
Sebastian-Webster authored Oct 17, 2023
2 parents 8dec4d7 + fe8d073 commit 24396b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/Temp.js
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit 24396b1

Please sign in to comment.