1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 11:13:27 +00:00

Delete all seeded data

Fixup single user recipe to inform of seeded entities
This commit is contained in:
Matt Gibson
2025-10-09 15:36:29 -07:00
parent d93cd50818
commit 431a708914
5 changed files with 72 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
using System.Reflection;
using System.Text.Json;
using Bit.Infrastructure.EntityFramework.Models;
using Bit.Infrastructure.EntityFramework.Repositories;
using Bit.Seeder;
using System.Reflection;
using System.Text.Json;
namespace Bit.SeederApi.Services;
@@ -17,6 +17,11 @@ public class RecipeService : IRecipeService
_logger = logger;
}
public List<SeededData> GetAllSeededData()
{
return _databaseContext.SeededData.ToList();
}
public (object? Result, Guid? SeedId) ExecuteRecipe(string templateName, JsonElement? arguments)
{
var result = ExecuteRecipeMethod(templateName, arguments, "Seed");