mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Read known emails to memory so we can close connection. (#1408)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user