1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-27 14:24:56 -05:00

Read known emails to memory so we can close connection. (#1408)

This commit is contained in:
Matt Gibson 2021-06-24 10:38:33 -04:00 committed by GitHub
parent 15d863459e
commit 601bf5416d

View File

@ -86,7 +86,8 @@ namespace Bit.Core.Repositories.SqlServer
new { OrganizationId = organizationId, Emails = emails.ToArrayTVP("Email"), OnlyUsers = onlyRegisteredUsers },
commandType: CommandType.StoredProcedure);
return result;
// Return as a list to avoid timing out the sql connection
return result.ToList();
}
}