Update AddedBy to default to "ReC.API" if no value provided

The AddedBy method in InsertObjectProcedure now accepts an optional parameter and sets AddedWho to "ReC.API" when no argument is supplied, ensuring a consistent default value.
This commit is contained in:
2026-01-14 17:12:15 +01:00
parent 2a8eb3c0ad
commit f9cc735318

View File

@@ -14,9 +14,9 @@ public record InsertObjectProcedure : IRequest<long>
internal string? AddedWho { get; private set; } internal string? AddedWho { get; private set; }
public InsertObjectProcedure AddedBy(string addedWho) public InsertObjectProcedure AddedBy(string? addedWho = null)
{ {
AddedWho = addedWho; AddedWho = addedWho ?? "ReC.API";
return this; return this;
} }