1
0
mirror of https://github.com/bitwarden/server synced 2026-01-16 15:33:19 +00:00
Files
server/util/SeederApi/Queries/GetAllPlayIdsQuery.cs
Matt Gibson 814612cb51 Rename PlayData -> PlayItem
This is still a join table, but the Data suffix was colliding with the concept of a JSON transfer model. The PlayItem name is designed to indicate that these records are not Play entities, but indications that a given Item (user or organization for now) is associated with a given Play
2026-01-08 08:45:38 -08:00

16 lines
400 B
C#

using Bit.Infrastructure.EntityFramework.Repositories;
using Bit.SeederApi.Queries.Interfaces;
namespace Bit.SeederApi.Queries;
public class GetAllPlayIdsQuery(DatabaseContext databaseContext) : IGetAllPlayIdsQuery
{
public List<string> GetAllPlayIds()
{
return databaseContext.PlayItem
.Select(pd => pd.PlayId)
.Distinct()
.ToList();
}
}