1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 15:17:33 -05:00

use withOrganizations sproc

This commit is contained in:
Kyle Spearrin
2018-04-24 20:19:23 -04:00
parent 165ee97d2f
commit 528a0732a6
2 changed files with 3 additions and 4 deletions

View File

@ -65,9 +65,7 @@ namespace Bit.Core.Repositories.SqlServer
public async Task<ICollection<CipherDetails>> GetManyByUserIdAsync(Guid userId, bool withOrganizations = true)
{
string sprocName = null;
// Always "with organizations" for now. Future TODO is to possibly move to another, simpler sproc when no
// orgs are expected.
if(true || withOrganizations)
if(withOrganizations)
{
sprocName = $"[{Schema}].[CipherDetails_ReadByUserId]";
}