1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

org and user info

This commit is contained in:
Kyle Spearrin
2018-03-22 21:10:10 -04:00
parent 7075d8396d
commit e920c8e9d2
9 changed files with 159 additions and 55 deletions

View File

@ -55,11 +55,7 @@ namespace Bit.Core.Repositories.SqlServer
new { Name = name, UserEmail = userEmail, Paid = paid, Skip = skip, Take = take },
commandType: CommandType.StoredProcedure);
// Select distinct results by Id
return results
.GroupBy(c => c.Id)
.Select(g => g.First())
.ToList();
return results.ToList();
}
}