1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00

Added the GetManyByUserIdAsync signature to the repositiory

This commit is contained in:
gbubemismith 2024-11-20 16:00:40 -05:00
parent b17ecbdee8
commit f84f0b1225
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View File

@ -1,9 +1,10 @@
using Bit.Core.Repositories;
using Bit.Core.Vault.Entities;
using Bit.Core.Vault.Enums;
namespace Bit.Core.Vault.Repositories;
public interface ISecurityTaskRepository : IRepository<SecurityTask, Guid>
{
Task<ICollection<SecurityTask>> GetManyByUserIdAsync(Guid userId, IEnumerable<SecurityTaskStatus> status = null);
}

View File

@ -1,5 +1,6 @@
using Bit.Core.Settings;
using Bit.Core.Vault.Entities;
using Bit.Core.Vault.Enums;
using Bit.Core.Vault.Repositories;
using Bit.Infrastructure.Dapper.Repositories;
@ -15,4 +16,5 @@ public class SecurityTaskRepository : Repository<SecurityTask, Guid>, ISecurityT
: base(connectionString, readOnlyConnectionString)
{ }
public async Task<ICollection<SecurityTask>> GetManyByUserIdAsync(Guid userId, IEnumerable<SecurityTaskStatus> status = null) => throw new NotImplementedException();
}

View File

@ -1,4 +1,5 @@
using AutoMapper;
using Bit.Core.Vault.Enums;
using Bit.Core.Vault.Repositories;
using Bit.Infrastructure.EntityFramework.Repositories;
using Bit.Infrastructure.EntityFramework.Vault.Models;
@ -11,4 +12,6 @@ public class SecurityTaskRepository : Repository<Core.Vault.Entities.SecurityTas
public SecurityTaskRepository(IServiceScopeFactory serviceScopeFactory, IMapper mapper)
: base(serviceScopeFactory, mapper, (context) => context.SecurityTasks)
{ }
public async Task<ICollection<Core.Vault.Entities.SecurityTask>> GetManyByUserIdAsync(Guid userId, IEnumerable<SecurityTaskStatus> status = null) => throw new NotImplementedException();
}