1
0
mirror of https://github.com/bitwarden/server synced 2026-01-05 18:13:31 +00:00

return collection readonly details

This commit is contained in:
Kyle Spearrin
2018-06-11 14:25:53 -04:00
parent 9cf036227e
commit 74874a1c38
10 changed files with 108 additions and 27 deletions

View File

@@ -64,13 +64,13 @@ namespace Bit.Core.Repositories.SqlServer
}
}
public async Task<ICollection<Collection>> GetManyByUserIdAsync(Guid userId, bool writeOnly)
public async Task<ICollection<CollectionDetails>> GetManyByUserIdAsync(Guid userId)
{
using(var connection = new SqlConnection(ConnectionString))
{
var results = await connection.QueryAsync<Collection>(
var results = await connection.QueryAsync<CollectionDetails>(
$"[{Schema}].[Collection_ReadByUserId]",
new { UserId = userId, WriteOnly = writeOnly },
new { UserId = userId },
commandType: CommandType.StoredProcedure);
// Return distinct Id results.