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:
parent
15d863459e
commit
601bf5416d
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user