1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

user edit

This commit is contained in:
Kyle Spearrin
2018-03-22 15:50:56 -04:00
parent 6ecaaff94d
commit b011b4e970
7 changed files with 244 additions and 33 deletions

View File

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