mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 19:00:45 +02:00
Actions use enum
This commit is contained in:
@@ -2,9 +2,9 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.Schema.ActionsContext.Actions;
|
||||
|
||||
public sealed class DataMovedActionRecord(string action, DateTime performedAt, string from, string to) : ActionRecord(action, performedAt)
|
||||
public sealed class DataMovedActionRecord(ActionsEnum action, DateTime performedAt, string from, string to) : ActionRecord(action, performedAt)
|
||||
{
|
||||
public DataMovedActionRecord(string from, string to) : this(DataMovedAction, DateTime.UtcNow, from, to) { }
|
||||
public DataMovedActionRecord(string from, string to) : this(ActionsEnum.DataMoved, DateTime.UtcNow, from, to) { }
|
||||
|
||||
/// <summary>
|
||||
/// From path
|
||||
@@ -17,6 +17,4 @@ public sealed class DataMovedActionRecord(string action, DateTime performedAt, s
|
||||
/// </summary>
|
||||
[StringLength(2048)]
|
||||
public string To { get; init; } = to;
|
||||
|
||||
public const string DataMovedAction = "Tranga.DataMoved";
|
||||
}
|
Reference in New Issue
Block a user