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:
parent
b17ecbdee8
commit
f84f0b1225
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user