mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
Use a header to track seeded data. This has benefits client side in simplicity and allows us to track entities added during a test, as long as they include the play id header.
This commit is contained in:
@@ -4,17 +4,15 @@ namespace Bit.SeederApi.Models.Response;
|
||||
|
||||
public class SceneResponseModel
|
||||
{
|
||||
public required Guid? SeedId { get; init; }
|
||||
public required Dictionary<string, string?>? MangleMap { get; init; }
|
||||
public required object? Result { get; init; }
|
||||
|
||||
public static SceneResponseModel FromSceneResult<T>(SceneResult<T> sceneResult, Guid? seedId)
|
||||
public static SceneResponseModel FromSceneResult<T>(SceneResult<T> sceneResult)
|
||||
{
|
||||
return new SceneResponseModel
|
||||
{
|
||||
Result = sceneResult.Result,
|
||||
MangleMap = sceneResult.MangleMap,
|
||||
SeedId = seedId
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user