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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user