This commit is contained in:
2026-03-24 19:32:43 +01:00
parent 22a65b7efa
commit 01093abced
8 changed files with 19 additions and 40 deletions
@@ -33,21 +33,15 @@ namespace Musify.Infrastructure.Messaging.Activities
var folderPath = executeContext.GetVariable<string>(executeContext.Arguments.SourceDirectoryVariableName);
if (string.IsNullOrWhiteSpace(folderPath))
{
throw new InvalidOperationException(
$"Transfer activity requires variable '{executeContext.Arguments.SourceDirectoryVariableName}' with source directory path.");
}
var destinationKeyName = executeContext.Arguments.DestinationKeyName;
if (string.IsNullOrWhiteSpace(destinationKeyName) && !string.IsNullOrWhiteSpace(executeContext.Arguments.DestinationKeyNameVariableName))
{
destinationKeyName = executeContext.GetVariable<string>(executeContext.Arguments.DestinationKeyNameVariableName);
}
if (string.IsNullOrWhiteSpace(destinationKeyName))
{
throw new InvalidOperationException("Transfer activity requires a destination key name from arguments or variables.");
}
try
{